Repository navigation
Lint: Create a project-wide .ruff.toml settings file - #133124
Merged
Merged
Conversation
AA-Turner
requested review from
AlexWaygood,
erlend-aasland and
hugovk
as code owners
April 29, 2025 01:50
Member
yup, that's the correct way to do config-file inheritance! |
AlexWaygood
approved these changes
Apr 29, 2025
Co-authored-by: Alex Waygood <[email protected]>
Co-authored-by: Alex Waygood <[email protected]>
AA-Turner
commented
May 1, 2025
|
webknjaz
pushed a commit
to webknjaz/cpython
that referenced
this pull request
Aug 12, 2025
Co-authored-by: Alex Waygood <[email protected]> (cherry picked from commit fe3c7e1)
|
GH-137670 is a backport of this pull request to the 3.13 branch. |
hugovk
added a commit
that referenced
this pull request
Aug 25, 2025
…33124) (#137670) Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Adam Turner <[email protected]>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-versionas 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
extendlines, 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/