New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix variable scope issue when renaming list comprehension variables (#293) #430
Conversation
ropetest/refactor/renametest.py
Outdated
@@ -41,138 +41,170 @@ def test_simple_global_variable_renaming(self): | |||
|
|||
def test_variable_renaming_only_in_its_scope(self): | |||
refactored = self._local_rename( | |||
dedent("""\ | |||
dedent( | |||
"""\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @climbus, I think these reformattings should not be made here. There is a setting in pyproject.toml that tells black that it should not be reformatting files in ropetest folder.
Can you modify your editor/black settings to make sure that it honors the pyproject.toml setting and revert these reformatting changes.
Thanks.
I was thinking why it happens to me ;) Thanks. I fixed it. |
Hi @climbus massive thank you and congratulations for fixing this issue. It had been quite a complex issue to fix this. |
No problem. I was interesting challenge ;) |
Description
Finally, fixed issue #293
Checklist (delete if not relevant):