We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
FURB113
nums = [1, 2, 3] nums.append(4) # Critically important comment 1 nums.append(5) # Critically important comment 2 nums.append(6)
Result:
nums = [1, 2, 3] nums.extend((4, 5, 6))
ruff /path/to/file.py --fix
--isolated
ruff --select FURB113 --preview --isolated --unsafe-fixes --fix test.py
pyproject.toml
ruff --version
ruff 0.1.1
The text was updated successfully, but these errors were encountered:
Avoid FURB113 autofix if comments are present (#8494)
4760af3
This PR avoids creating the fix for `FURB113` if there are comments in between the `append` calls. fixes: #8105
dhruvmanila
Successfully merging a pull request may close this issue.
Result:
ruff /path/to/file.py --fix
), ideally including the--isolated
flag.pyproject.toml
).None
ruff --version
).The text was updated successfully, but these errors were encountered: