-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
45 lines (39 loc) · 1020 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
45
[build-system]
requires = [
"setuptools>=49.5.0",
"wheel",
"setuptools_scm[toml]",
"setuptools_scm_git_archive",
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/snek5000/_version.py"
write_to_template = "__version__ = \"{version}\"\n"
[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", "snek5000_canonical", "./tests"]
data_file = ".coverage/coverage"
omit = [
"*/try_*.py",
"*/_old_*.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"