-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
86 lines (73 loc) · 1.78 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
86
[project]
name = "imars3d"
description = "Neutron imaging data analysis at ORNL"
dynamic = ["version"]
requires-python = ">=3.10"
license = { text = "BSD 3-Clause License" }
dependencies = [
"astropy",
]
[project.urls]
homepage = "https://github.com/ornlneutronimaging/iMars3D"
[project.scripts]
imars3dcli = "imars3d.backend.__main__:main"
[build-system]
requires = [
"setuptools >= 40.6.0",
"wheel",
"toml",
"versioningit"
]
build-backend = "setuptools.build_meta"
[tool.versioningit.vcs]
method = "git"
default-tag = "1.0.0"
[tool.versioningit.next-version]
method = "minor"
[tool.versioningit.format]
distance = "{next_version}.dev{distance}"
dirty = "{version}+d{build_date:%Y%m%d}"
distance-dirty = "{next_version}.dev{distance}+d{build_date:%Y%m%d%H%M}"
[tool.versioningit.write]
file = "src/imars3d/_version.py"
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["tests*", "scripts*", "docs*", "notebooks*"]
[tool.setuptools.package-data]
"*" = ["*.yml", "*.yaml", "*.ini", "schema.json"]
[tool.pytest.ini_options]
pythonpath = [".", "src", "scripts"]
testpaths = ["tests"]
python_files = ["test*.py"]
norecursedirs = [
".git", "tmp*", "_tmp*", "__pycache__",
"*dataset*", "*data_set*",
"*ui*"
]
markers = ["datarepo: mark a test as using imars3d-data repository"]
[tool.pylint]
max-line-length = 120
disable = ["too-many-locals",
"too-many-statements",
"too-many-instance-attributes",
"too-many-arguments",
"duplicate-code"
]
[tool.coverage.run]
source = [
"src/imars3d/backend"
]
omit = [
"*/tests/*",
"src/imars3d/__init__.py",
"src/imars3d/ui/*"
]
[tool.coverage.report]
fail_under = 60
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:"
]