Python Refactoring

Open-source Python projects categorized as Refactoring

Top 11 Python Refactoring Projects

Refactoring
  • pre-commit

    A framework for managing and maintaining multi-language pre-commit hooks.

    Project mention: How to Estimate Cloud Costs with Terraform and InfraCost | dev.to | 2024-09-06

    You can also add InfraCost as part of the pre-commit. With pre-commit, you can define some hooks that you can easily run before you push your code. There are multiple ways to install pre-commit, and you can find examples here.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • jedi

    Awesome autocompletion, static analysis and refactoring library for python

  • pre-commit-hooks

    Some out-of-the-box hooks for pre-commit

    Project mention: How to Estimate Cloud Costs with Terraform and InfraCost | dev.to | 2024-09-06

    repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.3.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/antonbabenko/pre-commit-terraform rev: v1.72.2 hooks: - id: terraform_fmt - id: terraform_tflint - id: infracost_breakdown args: - --args=--path=./ verbose: true # Always show costs - id: terraform_validate

  • Rope

    a python refactoring library (by python-rope)

  • Bowler

    Safe code refactoring for modern Python.

    Project mention: Refactoring Python with Tree-sitter and Jedi | news.ycombinator.com | 2024-09-27

    Great suggestion! Bowler seems to be abandoned actually. Its README mentions wanting to rewrite on top of LibCST though (https://github.com/facebookincubator/Bowler?tab=readme-ov-fi...).

  • Laboratory

    Achieving confident refactoring through experimentation with Python 2.7 & 3.3+

    Project mention: Scientist: A Ruby library for carefully refactoring critical paths | news.ycombinator.com | 2023-11-14

    Yes, at the bottom it lists all similar libraries in other languages. Python has https://github.com/joealcorn/laboratory

  • best-of-python-dev

    🏆 A ranked list of awesome python developer tools and libraries. Updated weekly.

  • reorder-python-imports

    Rewrites source to reorder python imports

  • RedBaron

    Bottom-up approach to refactoring in python

    Project mention: Show HN: Codemodder – A new codemod library for Java and Python | news.ycombinator.com | 2024-01-23

    https://github.com/PyCQA/redbaron

    E.g. PyCQA/bandit does static analysis for security issues in Python code:

  • refactor

    AST-based fragmental source code refactoring toolkit for Python

  • codelimit

    Your Refactoring Alarm 🔔

    Project mention: Show HN: Code Limit – Your Refactoring Alarm | news.ycombinator.com | 2024-04-28
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python Refactoring discussion

Log in or Post with

Python Refactoring related posts

  • Refactoring Python with Tree-sitter and Jedi

    9 projects | news.ycombinator.com | 27 Sep 2024
  • How to Estimate Cloud Costs with Terraform and InfraCost

    5 projects | dev.to | 6 Sep 2024
  • Show HN: Codemodder – A new codemod library for Java and Python

    7 projects | news.ycombinator.com | 23 Jan 2024
  • Implementing Quality Checks In Your Git Workflow With Hooks and pre-commit

    6 projects | dev.to | 13 Dec 2023
  • Scientist: A Ruby library for carefully refactoring critical paths

    6 projects | news.ycombinator.com | 14 Nov 2023
  • Refactor: Python Refactoring tool at the AST level

    1 project | news.ycombinator.com | 17 Sep 2023
  • [Tool Anouncement] github-distributed-owners - A tool for managing GitHub CODEOWNERS using OWNERS files distributed throughout your code base. Especially helpful for monorepos / multi-team repos

    2 projects | /r/github | 13 Sep 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 11 Oct 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Refactoring projects in Python? This list will help you:

Project Stars
1 pre-commit 12,800
2 jedi 5,780
3 pre-commit-hooks 5,252
4 Rope 1,939
5 Bowler 1,534
6 Laboratory 1,272
7 best-of-python-dev 1,012
8 reorder-python-imports 737
9 RedBaron 689
10 refactor 437
11 codelimit 34

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com