-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ruff.toml
28 lines (26 loc) · 831 Bytes
/
.ruff.toml
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
line-length = 99
indent-width = 4
[lint]
select = [
"E", "W", "F", "N", "D", "ANN", "A", "COM", "C4", "UP", "PT", "RET", "SIM", "ASYNC", "ARG",
"PD", "PL", "NPY", "RUF",
]
ignore = [
"ANN204", "ANN206",
"D105", "D107", "D203", "D205", "D212", "D401", "D407", "D413",
"PLR0913", "PLR2004"
]
[lint.per-file-ignores]
"tests/*" = [
# ignore same warnings as above
"ANN101", "ANN204", "ANN206",
"D102", "D105", "D107", "D203", "D205", "D212", "D401", "D407", "D413",
"PLR0913", "PLR2004",
# ignore additional warnings
"ANN201", # missing-return-type-undocumented-public-function
"D103", # undocumented-public-function
"D404", # first word of docstring should not be "This"
"N802", # invalid-function-name
"PLR0915" # too many statements
]
"proto/generated/*" = ["ALL"]