-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
44 lines (38 loc) · 958 Bytes
/
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
[build-system]
requires = [
"setuptools>=49.5.0",
"wheel",
"setuptools_scm[toml]>=7.0.0",
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/snek5000_cbox/_version.py"
[tool.pytest.ini_options]
addopts = "--cov --cov-config=pyproject.toml --no-cov-on-fail"
[tool.isort]
known_first_party = ["fluiddyn", "fluidsim", "snek5000"]
# multi_line_output = 3
profile = "black"
line_length = 82
[tool.coverage.run]
source = ["snek5000_cbox", "./tests"]
data_file = ".coverage/coverage"
omit = [
"*/try_*.py",
"*/_old_*.py",
"tests/test_slow_*.py",
]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"if __name__ == .__main__.:",
'if "sphinx" in sys.modules:',
"raise ValueError",
"raise NotImplementedError",
"except KeyError:",
"except ImportError:",
"except AttributeError:",
"except NotImplementedError:"
]
[tool.coverage.html]
directory = ".coverage/html"