-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
55 lines (49 loc) · 1.1 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
[tool.codespell]
# see https://github.com/codespell-project/codespell#using-a-config-file
skip = '.git'
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
'if __name__ == "__main__":',
]
[tool.coverage.run]
omit = [
"**/test_*.py",
'if __name__ == "__main__":',
]
[tool.pytest.ini_options]
addopts = [
"--color=yes",
"--cov=combine-durations",
"--cov=read-file",
"--cov=template-files",
"--cov-append",
"--cov-branch",
"--cov-report=term-missing", # print summary table to screen
"--cov-report=xml", # for codecov/codecov-action upload
"--strict-markers",
"--tb=native",
"-vv",
]
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
# see https://docs.astral.sh/ruff/rules/
select = [
"E", # pycodestyle errors
"F", # pyflakes
"FA", # flake8-future-annotations
"I", # isort
"ISC", # flake8-implicit-str-concat
"RUF100", # Unused noqa directive
"T10", # flake8-debugger
"TCH", # flake8-type-checking
"UP", # pyupgrade
"W", # pycodestyle warnings
]
[tool.ruff.lint.isort]
known-first-party = [
"combine_durations",
"read_file",
"template_files",
]