Lint: Create a project-wide `.ruff.toml
` settings file (#133124)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
5cdd49b3f4
commit
fe3c7e10d9
12
.ruff.toml
Normal file
12
.ruff.toml
Normal 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
|
@ -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:
|
||||||
|
@ -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",
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
target-version = "py310"
|
extend = "../../.ruff.toml" # Inherit the project-wide settings
|
||||||
fix = true
|
|
||||||
line-length = 79
|
|
||||||
|
|
||||||
[lint]
|
[lint]
|
||||||
select = [
|
select = [
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
target-version = "py310"
|
extend = "../../.ruff.toml" # Inherit the project-wide settings
|
||||||
fix = true
|
|
||||||
|
|
||||||
[lint]
|
[lint]
|
||||||
select = [
|
select = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user