Lint: Create a project-wide `.ruff.toml` settings file (#133124)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Adam Turner 2025-05-01 09:28:44 +01:00 committed by GitHub
parent 5cdd49b3f4
commit fe3c7e10d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 18 additions and 9 deletions

12
.ruff.toml Normal file
View File

@ -0,0 +1,12 @@
# Default settings for Ruff in CPython
# PYTHON_FOR_REGEN
target-version = "py310"
# PEP 8
line-length = 79
# Enable automatic fixes by default.
# To override this, use ``fix = false`` in a subdirectory's config file
# or ``--no-fix`` on the command line.
fix = true

View File

@ -1,7 +1,6 @@
extend = "../.ruff.toml" # Inherit the project-wide settings
target-version = "py312" # Align with the version in oldest_supported_sphinx target-version = "py312" # Align with the version in oldest_supported_sphinx
fix = true
output-format = "full"
line-length = 79
extend-exclude = [ extend-exclude = [
"includes/*", "includes/*",
# Temporary exclusions: # Temporary exclusions:

View File

@ -1,4 +1,5 @@
fix = true extend = "../../.ruff.toml" # Inherit the project-wide settings
extend-exclude = [ extend-exclude = [
# Excluded (run with the other AC files in its own separate ruff job in pre-commit) # Excluded (run with the other AC files in its own separate ruff job in pre-commit)
"test_clinic.py", "test_clinic.py",

View File

@ -1,6 +1,4 @@
target-version = "py310" extend = "../../.ruff.toml" # Inherit the project-wide settings
fix = true
line-length = 79
[lint] [lint]
select = [ select = [

View File

@ -1,5 +1,4 @@
target-version = "py310" extend = "../../.ruff.toml" # Inherit the project-wide settings
fix = true
[lint] [lint]
select = [ select = [