forked from Dedaub/pySAD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ruff.toml
46 lines (40 loc) · 944 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
select = ["B","C","E","F","W"]
ignore = [
"E501", # Line too long
"E731", # do not assign a lambda expression use a deg
"B905", # `zip()` without an explicit `strict=` parameter
"B008", # do not perform function calls in argument defaults
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["B","C","E","F","W"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
per-file-ignores = {"**/__init__.py" = ["F401"]}
# Same as Black.
line-length = 88
# Assume Python 3.10.
target-version = "py310"
# Unlike Flake8, default to a complexity level of 10.
mccabe.max-complexity = 10