-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Bump Ruff to 0.6.7 #124384
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
Bump Ruff to 0.6.7 #124384
Conversation
if name.startswith("c."): | ||
name = name[2:] | ||
|
||
name = par[0]["ids"][0].removeprefix("c.") |
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.
Nice little cleanup :)
Thanks @AlexWaygood for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
Sorry, @AlexWaygood, I could not cleanly backport this to
|
Sorry, @AlexWaygood, I could not cleanly backport this to
|
GH-124389 is a backport of this pull request to the 3.13 branch. |
GH-124391 is a backport of this pull request to the 3.12 branch. |
This bump requires the addition of three
noqa: F811
comments. Two of these (the ones inLib/test/pickletester.py
andLib/test/test_with.py
) are somewhat unavoidable, as Ruff is working as intended. Thenoqa
added inLib/test/test_os.py
indicates a bug in Ruff, however; I'll follow up on this and hopefully fix it.As well as the
F811
-related changes, there's also a small simplification made toDoc/tools/extensions/c_annotations.py
, to address a newFURB188
diagnostic in that file.📚 Documentation preview 📚: https://cpython-previews--124384.org.readthedocs.build/