rope
rope copied to clipboard
a python refactoring library
**Is your feature request related to a problem? Please describe.** I would like to write a CLI wrapper for the rope library that is easy to use as a command...
Some times I can find `sqlite3.operationalerror` in lsp.log so I guess it's relevant to concurrent behavior. Most cases, it's just doesn't work.
Is rope already able to sort the functions of a class by their usage? Also see https://stackoverflow.com/questions/76611154/how-to-automatically-sort-functions-in-classes-by-their-usage
Rename refactoring is successfully executed using any Python keyword in B.text. Steps to reproduce the behavior: 1. Code before refactoring: ``` class B: def a(self) -> None: text = 'hello'...
Rename refactoring is partially executed and doesn't rename all uses of the target class. Steps to reproduce the behavior: 1. Code before refactoring: p1/A.py: ``` class A: pass ``` p1/B.py:...
# Description Adding a `prefer_global_from_import` configuration option for pick the "global" form of import over the module one. ```diff - from pkg import mod1 - mod1.AClass() + from pkg.mod1 import...
When I try to use rope as a libaray to move module A.C to B.C, I found that code like "from A.C import foo;foo()" will be changed to "A.C.foo()", which...
**Describe the bug** When using the ArgumentRemover-refactoring on a class defined not at the top level I am getting an AttributeNotFoundError from within the library **To Reproduce** Steps to reproduce...
RemoveArgument - refactoring produces syntax errors at callsite if original code contains comments
**Describe the bug** When removing an argument from a function, the code at the callsite goes into syntax errors if comments exist at the callsite. **To Reproduce** Steps to reproduce...
**Describe the bug** Somehow the refactoring at the callsite messes up an unrelated string.format-argument **To Reproduce** Steps to reproduce the behavior: 1. Code before refactoring: ``` print_or_log_messages(None, ' write into:...