Skip to content
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.8.0 #2092

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Bump Ruff to 0.8.0 #2092

merged 1 commit into from
Nov 22, 2024

Conversation

AlexWaygood
Copy link
Contributor

Hi! I just released Ruff 0.8.0. This release removes PT004, which had been deprecated for a few releases, so Ruff 0.8.0 would have started emitting warnings when linting cibuildwheel due to the fact that you have PT004 explicitly ignored in your Ruff config.

This PR gets rid of PT004 from your Ruff config. There's also some additional changes made here due to the stabilisation of unsorted-dunder-all (RUF022) in this release -- let me know if these are unwelcome, and I can add them to the tool.ruff.lint.ignore list.

@@ -9,7 +9,6 @@
"PLATFORMS",
"PathOrStr",
"PlatformName",
"PLATFORMS",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ruff would have just moved this higher up, but I noticed that it actually appears twice in __all__ here, so I removed the duplicate entry!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I wonder if Ruff could also remove it eventually?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah definitely. I wondered this when I implemented RUF022 back in January, but I held off from doing it as part of RUF022 as it felt outside of its purview -- RUF022 is about style/formatting, whereas this feels like more of a correctness error. So it would have to be a different rule. But it's a rule I'd support adding, for sure!

@henryiii henryiii merged commit d3eeba7 into pypa:main Nov 22, 2024
23 of 24 checks passed
@AlexWaygood AlexWaygood deleted the update-ruff branch November 22, 2024 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants