-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (70 loc) · 1.17 KB
/
pyproject.toml
File metadata and controls
77 lines (70 loc) · 1.17 KB
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
[project]
name = "pytest-demo"
description = "Demonstrate pytest."
requires-python = ">=3.8"
authors = [
{ name = "Leonard Sasse", email = "l.sasse@fz-juelich.de" },
{ name = "Synchon Mandal", email = "s.mandal@fz-juelich.de" },
]
dependencies = [
"pytest",
"pytest-cov",
"pytest-xdist",
]
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = "src/tests"
log_cli_level = "INFO"
xfail_strict = true
addopts = [
"-ra",
"--strict-config",
"--strict-markers",
"-vvv",
]
[tool.coverage.run]
omit = [
"**/tests/*",
]
[tool.ruff]
line-length = 79
extend-exclude = [
"__init__.py",
]
[tool.ruff.lint]
select = [
# flake8-bugbear
"B",
# flake8-blind-except
"BLE",
# flake8-comprehensions
"C4",
# mccabe
"C90",
# pydocstyle
"D",
# pycodestyle errors
"E",
# pyflakes
"F",
# isort
"I",
# pep8-naming
"N",
# pygrep-hooks
"PGH",
# ruff
"RUF",
# flake8-type-checking
"TCH",
# pyupgrade
"UP",
# pycodestyle warnings
"W",
# flake8-2020
"YTT",
]
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.ruff.lint.mccabe]
max-complexity = 20