forked from felixdivo/ros2-easy-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
86 lines (76 loc) · 2.21 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
dynamic = ["version"]
name = "ros2_easy_test"
authors = [
{ name = "Felix Divo", email = "[email protected]" },
]
description = "A Python test framework for ROS2 allowing simple and expressive assertions based on message interactions."
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Framework :: Robot Framework :: Library",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: BDD",
"Typing :: Typed",
]
urls = { Homepage = "https://github.com/felixdivo/ros2-easy-test" }
dependencies = [
"makefun>=1.15.2"
]
# The package is discovered automatically (including the py.typed file):
# https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#flat-layout
[project.optional-dependencies]
dev = [
"black~=24.2",
"ruff",
"mypy",
"pytest",
"pytest-cov",
"pytest-sugar",
"hypothesis", # To demonstrate how it works with this
]
doc = [
"sphinx",
"sphinx_rtd_theme",
]
[tool.setuptools.dynamic]
version = { attr = "ros2_easy_test.__version__" }
[tool.pytest.ini_options]
# We want errors to fail loudly to not miss any exceptions in the background
# The latter part shows the duration of the slowest tests
# -v prints the test case names to see deadlocks
addopts = "-Werror --color=yes --cov=ros2_easy_test --doctest-modules --cov-report html --durations=0 --durations-min=3.0 -v"
testpaths = [
"ros2_easy_test", # for the doctests
"tests", # for the actual tests
]
[tool.black]
line-length = 110
[tool.isort]
profile = "black"
[tool.ruff]
# Same as Black
line-length = 110
# The lowest supported version
target-version = "py38"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP"]
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = [
"rclpy.*", # For the CI pipeline to work
"launch.*",
"example_interfaces.*",
"std_msgs.*",
]
ignore_missing_imports = true