-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ruff.toml
93 lines (82 loc) · 1.28 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
line-length = 100
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
[lint]
select = [
"A",
"ANN",
"ARG",
"B",
"C4",
"COM",
"D417",
"E",
"ERA",
"F",
"I",
"ICN",
"NPY001",
"PD002",
"PIE",
"PLE",
"PLW",
"PT",
"UP",
"PTH",
"RSE",
"RET",
"RUF",
"SIM",
"TCH",
"W",
]
ignore = [
"ANN101",
"ANN401",
"E402",
"E501",
"F401",
"F841",
"RET504",
"COM812",
"COM819",
"W191",
]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"__init__.py",
"docs/conf.py",
]
ignore-init-module-imports = true
unfixable = ["ERA"]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[format]
skip-magic-trailing-comma = true
[lint.flake8-annotations]
mypy-init-return = true
suppress-none-returning = true
[lint.flake8-type-checking]
quote-annotations = true
[lint.isort]
known-third-party = ["wandb"]
split-on-trailing-comma = false
[lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10