rope
rope copied to clipboard
a python refactoring library
Rename Field changes the import and adds a nonexistent name. Steps to reproduce the behavior: 1. Code before refactoring: ```python -- app.py from __future__ import print_function from compat import izip...
Rename Field allows the use of the object datamodels names. Steps to reproduce the behavior: 1. Code before refactoring: ```python class Exemplo: texto = str def __init__(self): print("__init__ rodou") obj...
The MoveField refactoring introduces a circular dependency. Steps to reproduce the behavior: 1. Code before refactoring: ```python -- input/a.py from b import B class A: def __init__(self): self.b = B()...
The Inline Method removes an overridden method that changes the type of the stored objects. Steps to reproduce the behavior: 1. Code before refactoring: ```python class Word(str): def __new__(cls, value):...
The Inline Method refactoring does not inline all the attributes, causing 'NameError' Steps to reproduce the behavior: 1. Code before refactoring: ```python _registry = {} def get_registry(): return _registry def...
The Inline Method refactoring removed an import from the test file, causing an error when the test file is run. Steps to reproduce the behavior: 1. Code before refactoring: ```python...
The extracted method was defined outside of class scope causing 'NameError' Steps to reproduce the behavior: 1. Code before refactoring: ```python class TSV: """TSV format. Assumes each row is of...
# Description The system executable might be an externally managed environment[1], which means pip then refuses to uninstall the installed package, and it bubbles up as a teardown error. Use...
**Describe the bug** There seems to be a difference in the resolution of the module name in autoimport.sqlite and in autoimport.pickle. I don't know if this different logic was intentional...
Hello! š Iām conducting a study on Python linters to better understand how developers select, use, and want to improve them. Since you use multiple linters (like Pylint or Black),...