11 रिपॉजिटरी
Tools that assist in modifying, cleaning, or modernizing existing codebases.
Explore 11 awesome GitHub repositories matching part of an awesome list · Code Refactoring. Refine with filters or upvote what's useful.
This project is a comprehensive collection of software design patterns implemented in Python. It serves as a reference for architectural, behavioral, creational, and structural patterns to guide the organization of Python applications. The collection covers behavioral strategies for managing object communication and state, creational techniques for controlling object instantiation, and structural methods for composing classes and objects into flexible hierarchies. It also includes architectural references for system-wide structuring, such as multi-tier architectures and blackboard models. Th
Identifies architectural anti-patterns and provides clean, idiomatic Python refactoring alternatives.
Awesome autocompletion, static analysis and refactoring library for python
Library for autocompletion and static analysis during refactoring.
MonkeyType एक रनटाइम टाइप इन्फरेंसर और Python के लिए एनालिसिस टूल है। यह प्रोग्राम निष्पादन के दौरान फंक्शन कॉल से वास्तविक आर्गुमेंट और रिटर्न टाइप को इकट्ठा करता है, ताकि स्टैटिक टाइप एनोटेशन और संगत स्टब फाइलों को ऑटोमेट किया जा सके। यह सिस्टम कैप्चर किए गए निष्पादन ट्रेस को स्टैटिक टाइप हिंट्स में बदल देता है, जिन्हें सीधे सोर्स कोड फंक्शन डेफिनिशन में डाला जा सकता है या बाहरी टाइप स्टब बनाने के लिए उपयोग किया जा सकता है। यह प्रक्रिया मैन्युअल ऑडिटिंग के बजाय वास्तविक डेटा प्रकारों का विश्लेषण करके मौजूदा कोडबेस में टाइप सेफ्टी जोड़ने की अनुमति देती है। इस टूल की क्षमताओं में रनटाइम टाइप कलेक्शन, डायनामिक टाइप इन्फरेंस और स्टैटिक टाइप डेफिनिशन का जनरेशन शामिल है। यह देखे गए रनटाइम पैटर्न को स्टैटिक सिग्नेचर से मैप करने के लिए सोर्स कोड मॉडिफिकेशन और कॉल-ट्रेस पर्सिस्टेंस का उपयोग करता है।
Generates type annotations by observing runtime execution.
Vulture is a static analysis tool and linter designed to find unused variables, functions, and classes in Python source code. It operates as a dead code detector and unused code finder that scans source files to identify unreachable expressions and imports without executing the code. The tool employs a confidence-based heuristic scoring system to assign probability values to detections, helping to distinguish truly unused symbols from potential false positives. It further assists in pruning dead logic by sorting detected unused classes and functions by line count to prioritize the removal of
Identifies and removes unused or dead code.
pyupgrade Python के लिए एक स्टेटिक कोड मॉडर्नाइज़र और सिंटैक्स अपग्रेडर है। यह निर्दिष्ट लक्ष्य संस्करण के आधार पर आधुनिक भाषा सुविधाओं और सिंटैक्स को लागू करने के लिए स्वचालित रूप से सोर्स कोड को फिर से लिखता है। यह टूल तकनीकी ऋण (technical debt) को हटाने पर केंद्रित है, जिसमें डेप्रिकेटेड इम्पोर्ट्स, कम्पैटिबिलिटी शिम्स और अप्रचलित संस्करण-विशिष्ट कंडीशनल ब्लॉक्स को हटाना शामिल है। यह टाइप एनोटेशन को वर्तमान मानकों का उपयोग करने के लिए रिफैक्टर भी करता है, जैसे कि सरलीकृत जेनेरिक एलियास और यूनियन ऑपरेटर्स। इसकी क्षमता सतह में मानक लाइब्रेरी उपयोग को अपडेट करना, इन-बिल्ट फंक्शन कॉल्स को ऑप्टिमाइज़ करना, और वर्बोज़ कलेक्शन कंस्ट्रक्टर्स या स्ट्रिंग फॉर्मेटिंग को संक्षिप्त आधुनिक समकक्षों में बदलना शामिल है। ये रूपांतरण एक टारगेट-वर्शन्ड रूल इंजन के माध्यम से किए जाते हैं जो मूल फॉर्मेटिंग और टिप्पणियों को संरक्षित करते हैं।
Automatically updates syntax to use modern language features.
a python refactoring library
Comprehensive library for automated code refactoring tasks.
Removes unused imports and unused variables as reported by pyflakes
Removes unused imports and variables from source files.
add-trailing-comma
Automatically inserts trailing commas for cleaner diffs.
com2ann
Converts type comments into modern type annotations.
.. image:: https://img.shields.io/pypi/v/massedit.svg :target: https://pypi.python.org/pypi/massedit/ :alt: PyPi version
Enables programmatic text editing across multiple files.
🚀 The ultimate linter and formatter for removing unused import statements in your code.
Cleans up unused import statements in Python files.