-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (90 loc) · 2.14 KB
/
pyproject.toml
File metadata and controls
102 lines (90 loc) · 2.14 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "smsfusion"
authors = [
{ name="4Subsea", email="python@4subsea.com" },
]
description = "Sensor fusion algorithms and utilities for SMS Motion"
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dynamic = ["version"]
dependencies = [
"numba",
"numpy",
"scipy" # required by numba
]
[project.urls]
"Homepage" = "https://github.com/4Subsea/smsfusion-python"
"Bug Tracker" = "https://github.com/4Subsea/smsfusion-python/issues"
[tool.hatch.version]
path = "src/smsfusion/__about__.py"
[tool.hatch.envs.test]
dependencies = [
"black",
"coverage[toml]",
"isort",
"mypy",
"pandas", # used as to load data
"pyarrow", # pandas dependency
"pytest",
"pytest-cov",
"scipy" # used as reference implementation for rotations
]
[tool.hatch.envs.test.scripts]
style = [
"black --check .",
"isort --check . --profile black"
]
unit = "pytest --cov-config=pyproject.toml --cov --cov-report html"
type = "mypy"
complete = [
"style",
"type",
"unit",
]
[tool.hatch.envs.docs]
dependencies = [
"sphinx",
"myst-parser",
"pydata-sphinx-theme",
]
[tool.hatch.envs.docs.scripts]
build = "sphinx-build -b html ./docs ./build/html"
[tool.pytest.ini_options]
testpaths = [
"tests"
]
[tool.coverage.run]
branch = true
source = ["src/smsfusion"]
[tool.coverage.report]
ignore_errors = false
show_missing = true
omit = ["src/smsfusion/__about__.py"]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
"AbstractMethodError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.coverage.html]
directory = "coverage_html_report"
[tool.mypy]
files = ["src/smsfusion"]
strict = true
ignore_missing_imports = true