Lint: Create a project-wide .ruff.toml settings file#133124
Lint: Create a project-wide .ruff.toml settings file#133124AA-Turner merged 4 commits intopython:mainfrom
.ruff.toml settings file#133124Conversation
yup, that's the correct way to do config-file inheritance! |
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit fe3c7e1)
|
GH-137670 is a backport of this pull request to the 3.13 branch. |
|
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/