-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
85 lines (77 loc) · 1.62 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[tool.black]
line-length = 88
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
[tool.ruff]
lint.extend-select = ["D"]
lint.extend-ignore = [
"D107",
"D203",
"D212",
"D213",
"D400",
"D402",
"D413",
"D415",
"D416",
"D417",
]
# Same as Black.
line-length = 88
# Assume Python 3.11.
target-version = "py311"
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.isort]
skip = [".gitignore", ".dockerignore", ".venv"]
no_sections = true
lines_between_types = 1
multi_line_output = 3
include_trailing_comma = true
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
profile = "black"
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
# Don't complain if tests don't hit defensive assertion code:
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if __name__ == .__main__.:",
]
[tool.coverage.run]
relative_files = true
data_file = "reports/.coverage"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = [
"--cov-config=pyproject.toml",
"--cov-report=xml:reports/coverage.xml",
"--junitxml=reports/results.xml",
"--cov-report=term-missing",
"--cov=pr_changes",
]
testpaths = [
"tests",
]