-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathruff.toml
More file actions
29 lines (27 loc) · 1.51 KB
/
ruff.toml
File metadata and controls
29 lines (27 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# SPDX-FileCopyrightText: © 2026 ACID Contributors <https://doi.org/10.5281/zenodo.15722902>
# SPDX-License-Identifier: CC-BY-SA-4.0
line-length = 100
target-version = "py311"
[lint]
select = [
"A", "B", "BLE", "C4", "E", "EXE", "F", "I", "ICN", "ISC", "N", "NPY", "PERF", "PIE", "PL",
"PT", "PYI", "RET", "RSE", "RUF", "SIM", "TRY", "UP", "W"
]
ignore = [
"PLC0415", # https://docs.astral.sh/ruff/rules/import-outside-top-level/
"PLR0904", # https://docs.astral.sh/ruff/rules/too-many-public-methods/
"PLR0911", # https://docs.astral.sh/ruff/rules/too-many-return-statements/
"PLR0912", # https://docs.astral.sh/ruff/rules/too-many-branches/
"PLR0913", # https://docs.astral.sh/ruff/rules/too-many-arguments/
"PLR0914", # https://docs.astral.sh/ruff/rules/too-many-locals/
"PLR0915", # https://docs.astral.sh/ruff/rules/too-many-statements/
"PLR0916", # https://docs.astral.sh/ruff/rules/too-many-boolean-expressions/
"PLR0917", # https://docs.astral.sh/ruff/rules/too-many-positional/
"PLR2004", # https://docs.astral.sh/ruff/rules/magic-value-comparison/
"PLW2901", # https://docs.astral.sh/ruff/rules/redefined-loop-name/
"PT011", # https://docs.astral.sh/ruff/rules/pytest-raises-too-broad/
"RET503", # https://docs.astral.sh/ruff/rules/implicit-return/
"TRY003", # https://docs.astral.sh/ruff/rules/raise-vanilla-args/
"TRY300", # https://docs.astral.sh/ruff/rules/try-consider-else/
"TRY301", # https://docs.astral.sh/ruff/rules/raise-within-try/
]