-
Notifications
You must be signed in to change notification settings - Fork 17
/
tox.ini
96 lines (86 loc) · 2.27 KB
/
tox.ini
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
[tox]
isolated_build = True
envlist = coverage,lint,loader-{mujoco,pinocchio,pybullet,robomeshcat,yourdfpy,idyntree}
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv:coverage]
deps =
coverage >=5.5
idyntree >= 8.0.0
mujoco >=2.3.5
numpy >=1.23.4,<2
pin >=2.6.14
pybullet >=3.2.5
robomeshcat >= 1.0.4
yourdfpy >=0.0.56
commands =
coverage erase
coverage run -m unittest tests
coverage report --include="robot_descriptions/**"
[testenv:lint]
deps =
black >=22.10.0
idyntree >= 8.0.0
mccabe
mujoco >=2.3.5
mypy
numpy >=1.23.4,<2
pin >=2.6.14
pybullet >=3.2.5
pylint
robomeshcat >= 1.0.4
ruff >=0.2.2
yourdfpy >=0.0.56
commands =
black --check --diff robot_descriptions
mypy robot_descriptions --ignore-missing-imports
pylint robot_descriptions --exit-zero --rcfile={toxinidir}/tox.ini
ruff check robot_descriptions
ruff format --check robot_descriptions
[testenv:loader-idyntree]
changedir = {toxinidir}/tests/loaders
deps =
idyntree >= 8.0.0
commands =
python -m unittest test_idyntree.py
[testenv:loader-mujoco]
changedir = {toxinidir}/tests/loaders
deps =
mujoco >=2.3.5
commands =
python -m unittest test_mujoco.py
[testenv:loader-pinocchio]
changedir = {toxinidir}/tests/loaders
deps =
pin >=2.6.14
commands =
python -m unittest test_pinocchio.py
[testenv:loader-pybullet]
changedir = {toxinidir}/tests/loaders
deps =
numpy >=1.23.4,<2
pybullet >=3.2.5
commands =
python -m unittest test_pybullet.py
[testenv:loader-robomeshcat]
changedir = {toxinidir}/tests/loaders
deps =
pycollada >=0.6
robomeshcat >= 1.0.4
commands =
python -m unittest test_robomeshcat.py
[testenv:loader-yourdfpy]
changedir = {toxinidir}/tests/loaders
deps =
lxml <=4.9.4
numpy >=1.23.4,<2
trimesh ~=3.16.0
yourdfpy >=0.0.56
commands =
python -m unittest test_yourdfpy.py
[pylint]
generated-members=mujoco.MjModel, pin.JointModelFreeFlyer, pin.JointModelPX, pin.JointModelPY, pin.JointModelPZ, pin.JointModelPlanar, pin.JointModelRX, pin.JointModelRY, pin.JointModelRZ, pin.JointModelSpherical, pin.JointModelSphericalZYX, pin.JointModelTranslation, pin.Model, pybullet.loadURDF, pybullet.setAdditionalSearchPath