Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
--- /dev/null
+# 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
+extend = "../.ruff.toml" # Inherit the project-wide settings
+
target-version = "py312" # Align with the version in oldest_supported_sphinx
-fix = true
-output-format = "full"
-line-length = 79
extend-exclude = [
"includes/*",
# Temporary exclusions:
-fix = true
+extend = "../../.ruff.toml" # Inherit the project-wide settings
+
extend-exclude = [
# Excluded (run with the other AC files in its own separate ruff job in pre-commit)
"test_clinic.py",
-target-version = "py310"
-fix = true
-line-length = 79
+extend = "../../.ruff.toml" # Inherit the project-wide settings
[lint]
select = [
-target-version = "py310"
-fix = true
+extend = "../../.ruff.toml" # Inherit the project-wide settings
[lint]
select = [