-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathpyproject.toml
63 lines (54 loc) · 1.03 KB
/
pyproject.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
[tool.pytest.ini_options]
pythonpath = "src"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
"*/tests.py",
"*/migrations/*.py",
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"venv",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
]
ignore = [
"E501", # line too long, handled by black
]
fixable = ["I"]
unfixable = []
[tool.ruff.lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds the following value.
max-complexity = 10
[tool.isort]
line_length = 88
[tool.coverage.run]
omit = ["*/tests/*", "*/__init__.py"]
[tool.mypy]
mypy_path = "src"
ignore_missing_imports = true
strict = true
enable_incomplete_feature = ["Unpack"]
[tool.numpydoc_validation]
checks = [
"all", # report on all checks, except the below
"ES01",
"EX01",
"SA01",
]