-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (76 loc) · 2.48 KB
/
Copy pathpyproject.toml
File metadata and controls
90 lines (76 loc) · 2.48 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "riskenv"
dynamic = ["version"]
description = "A Python library for computing Risk Envelopes — convex hulls of collision-risk regions for motion planning in dynamic environments."
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{name = "Ryan McKee", email = "r.mckee@qub.ac.uk"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
requires-python = ">=3.10"
dependencies = [
"numpy",
"scipy",
"matplotlib",
]
[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
"pyyaml",
]
[project.urls]
Documentation = "https://github.com/RyanMcKeeQUB/riskenv/blob/stable/README.md"
Issues = "https://github.com/RyanMcKeeQUB/riskenv/issues"
Source = "https://github.com/RyanMcKeeQUB/riskenv"
Changelog = "https://github.com/RyanMcKeeQUB/riskenv/releases"
[tool.hatch.version]
path = "src/__about__.py"
[tool.hatch.build.targets.sdist]
packages = ["src/riskenv"]
[tool.hatch.build.targets.wheel]
packages = ["src/riskenv"]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/ tests}"
[tool.hatch.envs.test]
dependencies = ["pytest", "pytest-cov", "pyyaml", "numpy", "scipy", "matplotlib"]
[tool.hatch.envs.test.scripts]
unit = "python -m pytest tests/unit_tests/ -v --tb=short"
integration = "python -m pytest tests/integration_tests/ -v --tb=short"
all = "python -m pytest tests/ -v --tb=short"
cov = "python -m pytest tests/unit_tests/ --cov=riskenv --cov-report=term-missing"
[tool.hatch.metadata]
allow-direct-references = true
[tool.pytest.ini_options]
testpaths = ["tests"]
# Suppress ROS2 pytest plugins that are auto-discovered on systems with ROS installed.
addopts = "-p no:launch_testing -p no:launch_ros -p no:ament_pep257 -p no:ament_flake8 -p no:ament_xmllint -p no:ament_lint -p no:ament_copyright"
[tool.coverage.run]
source_pkgs = ["riskenv", "tests"]
branch = true
parallel = true
omit = [
"src/riskenv/__about__.py",
"src/riskenv/main.py"
]
[tool.coverage.paths]
riskenv = ["src/riskenv"]
tests = ["tests", "*/riskenv/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]