forked from felixdivo/ros2-easy-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
36 lines (31 loc) · 994 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
[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/ros2_easy_test", # for the doctests
"ros2_easy_test/tests", # for the actual tests
]
[tool.ruff]
line-length = 110
# The lowest supported version
target-version = "py38"
exclude = ["ros_ws/**"] # Gets created by the CI pipeline
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP"]
[tool.ruff.format]
docstring-code-format = true
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = [
"rclpy.*", # For the CI pipeline to work
"launch.*",
"launch_ros.*",
"std_msgs.*",
"action_msgs.*",
"example_interfaces.*",
]
ignore_missing_imports = true