rope
rope copied to clipboard
a python refactoring library
# Description Added a new setting (`imports.preferred_import_style`) that controls how rope inserts new import statements. It can be set to: - `normal-import` (default) which will insert imports as `import `...
The following series of tickets all have the same root cause, rope currently doesn't validate whether the target variable name is currently occupied by another existing variable: - [ ]...
Steps to reproduce the behavior: 1. Code before refactoring: ```python class Descriptor: def __get__(self, instance, owner): return 40 ``` 2. Apply the Rename Method refactoring to the method \_\_get\_\_. 3....
Inline method refactoring passes the wrong parameter to the inlined function body Steps to reproduce the behavior: 1. Code before refactoring: structure > -- en > ---- \_\_init.py\_\_ > ----...
Inline method refactoring changes field signatures and generates uninitialized variables Steps to reproduce the behavior: 1. Code before refactoring: ```python def _calculate_tk(source): def RL(a, b): for c in range(0, len(b)...
Inline method refactoring allows for rich comparison methods. It would be nice if Rope sent an alert to the user to avoid applying the transformation to rich comparison methods. Steps...
Inline method refactoring inserts an unexpected argument in the method call. Steps to reproduce the behavior: 1. Code before refactoring: structure: > -- main > ---- \_\_init\_\_.py > ---- blob.py...
Rename Method refactoring allowed for methods defined to implement container objects It would be nice if Rope sent an alert to the user to avoid incompatible parameter type errors when...
Steps to reproduce the behavior: 1. Code before refactoring: structure >-- main >---- base.py >-- test >---- test.py base.py: ```python from abc import abstractmethod, ABC class BaseTokenizer(ABC): @abstractmethod def tokenize(self,...
Rename Method refactoring is allowed to change the name of methods designed to emulate numeric operations. It would be nice if Rope sent an alert, as this transformation may cause...