forked from sagemath/sage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
19 lines (16 loc) · 658 Bytes
/
ruff.toml
File metadata and controls
19 lines (16 loc) · 658 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# https://docs.astral.sh/ruff/configuration/#config-file-discovery
# Python 3.11 is the minimum supported version
target-version = "py311"
lint.select = [
"E", # pycodestyle errors - https://docs.astral.sh/ruff/rules/#error-e
"F", # pyflakes - https://docs.astral.sh/ruff/rules/#pyflakes-f
"I", # isort - https://docs.astral.sh/ruff/rules/#isort-i
"PL", # pylint - https://docs.astral.sh/ruff/rules/#pylint-pl
]
lint.ignore = [
"E501", # Line too long - hard to avoid in doctests, and better handled by black.
]
[lint.per-file-ignores]
"all.py" = [
"F401", # Unused import - these files are by definition collections of imports.
]