-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.ruff.toml
62 lines (56 loc) · 1.3 KB
/
.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
line-length = 80
target-version = "py312"
indent-width = 4
[lint]
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"B", # Bugbear
"C",
"COM", # flake8-commas
# "CPY", # flake8-copyright
"C4", # flake8-comprehensions
# "DTZ", # flake8-datetimez
"D", # pydocstyle
"E", # pycodestyle errors
# "ERA", # eradicate commented out code
"F", # pyflakes
"FA", # flake8-future-annotations
"FBT", # boolean traps
"FLY", # flynt
"FURB", # refurb
"G", # flake8-logging-format
"I", # incomplete isort
"INP", # flake8-no-pep420
"LOG", # flake8-logging
"N", # naming
"NPY", # NumPy-specific rules
"PD", # pandas-vet
"PERF", # Perflint
"PL", # Pylint
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"RET", # flake8-return
"RUF", # Ruff-specific rules
"S", # bandit, security
"SLF", # flake8-self
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"T10", # flake8-print
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
]
ignore = ["D203", "D212", "D415", "COM812", "INP001", "S104", "S404"]
preview = true
[lint.per-file-ignores]
[lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 11
[lint.isort]
[lint.pyupgrade]
keep-runtime-typing = true
[format]
line-ending = "lf"