-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathruff.toml
More file actions
49 lines (42 loc) · 1.12 KB
/
ruff.toml
File metadata and controls
49 lines (42 loc) · 1.12 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[lint]
select = [
"F", # Pyflakes
"E", "W", # pycodestyle
"C90", # mccabe
# pydocstyle
"D200", "D201", "D202", "D206", "D207", "D208", "D209", "D210", "D212",
"D214", "D215", "D3", "D4",
"UP", # pyupgrade
"N", # pep8-naming
"YTT", # flake8-2020
"B", # Bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RET", # flake8-return
"SIM", # flake8-simplify
"DTZ", # flake8-datetimez
"ERA", # eradicate
"PGH", # pygrep-hooks
"PLE", "PLW", # Pylint
"PIE", # flake8-pie
"RUF", # Ruff-specific rules (ambiguous unicode and unused noqa)
]
ignore = [
# Allow going over the max line length, for now.
"E501",
]
unfixable = [
# Eradication can sometimes make comments weird. Don't remove automatically.
"ERA",
# Don't remove unused noqas, since they may have disappeared due to other errors.
"RUF100",
# Don't automatically remove unused bits, they usually indicate typos
"F8",
]
[lint.mccabe]
max-complexity = 15