-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
75 lines (68 loc) · 1.58 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
63
64
65
66
67
68
69
70
71
72
73
74
75
exclude = [
# Default values
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"_version.py",
"versioneer.py",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
# Custom values
"old",
"*tmp*",
"*temp*",
"data-hg19*",
"docs",
"migrations"
]
line-length = 80
indent-width = 4
target-version = "py310"
[lint]
select = ["E", "F", "W", "C90", "I", "UP", "ASYNC", "S", "BLE", "FBT", "B", "A", "COM", "C4", "T10", "EXE", "ISC", "LOG", "G", "INP", "PIE", "T20", "PT", "Q", "RSE", "RET", "SLF", "SIM", "ARG", "PTH", "FIX", "ERA", "PD", "TRY", "PERF", "FURB", "RUF"]
ignore = [
"D105", "D107", "D417", "UP015", "UP038", "FURB152", "PD901",
"TRY003",
"T201", "S101", "PTH", # for separate tasks, fix issues and then enable these rules
"PT006", # for separate task - currently we use 'csv', but maybe change to 'tuple' or 'list'?
"PERF203", # Python 3.11 introduces zero cost exception handling
"S603",
"S404",
"B019",
"FURB192",
]
fixable = ["ALL"]
preview = true
[lint.per-file-ignores]
"test*.py" = ["S101", "SLF"]
"conftest.py" = ["D"]
"setup.py" = ["INP001"]
[lint.mccabe]
max-complexity = 20
[lint.flake8-quotes]
inline-quotes = "double"
docstring-quotes = "double"
multiline-quotes = "double"
[lint.pydocstyle]
convention = "pep257"