-
Notifications
You must be signed in to change notification settings - Fork 15
/
ruff.toml
47 lines (43 loc) · 829 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
line-length = 88
src = ["src"]
[lint]
select = ["E", "F", "PL", "N", "D", "ARG", "I"]
ignore = [
"D105", # undocumented-magic-method,
"D107", # undocumented-public-init
"PLR2004", # magic-value-comparison,
]
ignore-init-module-imports = true
exclude = [
"__pypackages__",
"_build",
".bzr",
".direnv",
".eggs",
".git-rewrite",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[lint.per-file-ignores]
"__init__.py" = ["F401"] # unused-import
"tests/*.py" = ["D"] # no docs needed in tests.
"docs/*.py" = ["D"]
[lint.pydocstyle]
convention = "google"
[lint.pylint]
max-args = 10