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

Revise ruff.toml's extend select #240

Open
EGJ-Moorington opened this issue Aug 12, 2024 · 0 comments
Open

Revise ruff.toml's extend select #240

EGJ-Moorington opened this issue Aug 12, 2024 · 0 comments

Comments

@EGJ-Moorington
Copy link

ruff.toml extends the selection of errors in extend-select, but some of those are part of the Ruff preview. I'm unsure if this is set up so that when the errors leave the preview they are enabled, or if the template should be modified so that Ruff is set to preview by default.

Rule F401 is commented in extend-select so that the try: import typing used by libraries doesn't get removed automatically by Ruff when running pre-commit. However, I believe both library makers and other users would benefit from having rule F401 uncommented. Library developers can add the comment # noqa: F401 to their import typing line so that it doesn't automatically get removed by Ruff.

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

No branches or pull requests

1 participant