-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Lint: Create a project-wide .ruff.toml
settings file
#133124
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
Conversation
yup, that's the correct way to do config-file inheritance! |
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, thank you!
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
We have some settings that are replicated in every
.ruff.toml
. It's somewhat useful to centralise, so that we keep consistency throughout the project.I've set
target-version
as 3.10 as that seems most common (inspired by PYTHON_FOR_REGEN?), but I'd have no objections to requiring something more recent.I believe we need the
extend
lines, unless there's some way to get Ruff to automatically look in parent/project root directories (cc @AlexWaygood).A
📚 Documentation preview 📚: https://cpython-previews--133124.org.readthedocs.build/