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

Drop flake8-noqa and remove workarounds to work with Ruff #13571

Merged
merged 6 commits into from
Mar 3, 2025

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Mar 2, 2025

Closes #13296 See that issue for explanation.

If the package is ever updated to include plinss/flake8-noqa#30 we could partially revert this PR.

As a follow-up, I can include more flake8-pyi (PYI) codes and simplify its config in pyproject.toml. By excluding some codes instead of including most of them.

@Avasam Avasam force-pushed the dropping-flake8-noqa branch from 31ff0f0 to 9201687 Compare March 2, 2025 02:59

This comment has been minimized.

@@ -66,8 +66,7 @@ select = [
"FURB177", # Prefer `Path.cwd()` over `Path().resolve()` for current-directory lookups
"FURB187", # Use of assignment of `reversed` on list `{name}`
# PYI: only enable rules that have autofixes and that we always want to fix (even manually),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In a separate PR (or this one if you prefer), this could be changed to

Suggested change
# PYI: only enable rules that have autofixes and that we always want to fix (even manually),
# PYI: only enable rules for which we never noqa their flake8-pyi plugin equivalent,

Even better imo is to instead select all and disable the few codes where this happens.

@Avasam Avasam changed the title Dropped flake8-noqa and remove workarounds to work with Ruff Drop flake8-noqa and remove workarounds to work with Ruff Mar 2, 2025
Copy link
Contributor

github-actions bot commented Mar 2, 2025

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit cc206f7 into python:main Mar 3, 2025
63 checks passed
@Avasam Avasam deleted the dropping-flake8-noqa branch March 3, 2025 15:01
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.

Unmaintained flake8-noqa, Adding support for external codes
2 participants