Skip to content

Commit d5a49cf

Browse files
Configure isort in pyproject.toml
1 parent 4cda9c8 commit d5a49cf

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,7 @@ Changelog = "https://github.com/stephane-caron/robot_descriptions.py/blob/master
5050

5151
[tool.black]
5252
line-length = 79
53+
54+
[tool.isort]
55+
profile = "black"
56+
line_length = 79

tox.ini

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ python =
1212
[testenv:coverage]
1313
deps =
1414
coverage
15+
idyntree >= 8.0.0
1516
mujoco >=2.2.1
1617
pin >=2.6.10
17-
idyntree >= 8.0.0
1818
pybullet >=3.2.5
1919
robomeshcat >= 1.0.4
2020
yourdfpy >=0.0.52
@@ -25,49 +25,58 @@ commands =
2525

2626
[testenv:lint]
2727
deps =
28-
black
28+
black >=22.10.0
2929
flake8
30+
idyntree >= 8.0.0
31+
isort >=5.8.0
3032
mccabe
3133
mujoco >=2.2.1
3234
mypy
3335
pin >=2.6.10
34-
idyntree >= 8.0.0
3536
pybullet >=3.2.5
3637
pylint
3738
robomeshcat >= 1.0.4
3839
yourdfpy >=0.0.52
3940
commands =
4041
black --check --diff robot_descriptions
42+
isort --check-only robot_descriptions
4143
flake8 robot_descriptions
4244
pylint robot_descriptions --exit-zero --rcfile={toxinidir}/tox.ini
4345
mypy robot_descriptions --ignore-missing-imports
4446

45-
[testenv:loader-mujoco]
47+
[testenv:loader-idyntree]
4648
deps =
49+
idyntree >= 8.0.0
4750
pytest
51+
commands =
52+
pytest --import-mode=importlib tests/loaders/test_idyntree.py
53+
54+
[testenv:loader-mujoco]
55+
deps =
4856
mujoco >=2.2.1
57+
pytest
4958
commands =
5059
mujoco: pytest --import-mode=importlib tests/loaders/test_mujoco.py
5160

5261
[testenv:loader-pinocchio]
5362
deps =
54-
pytest
5563
pin >=2.6.10
64+
pytest
5665
commands =
5766
pytest --import-mode=importlib tests/loaders/test_pinocchio.py
5867

5968
[testenv:loader-pybullet]
6069
deps =
61-
pytest
6270
numpy >=1.23.4
6371
pybullet >=3.2.5
72+
pytest
6473
commands =
6574
pytest --import-mode=importlib tests/loaders/test_pybullet.py
6675

6776
[testenv:loader-robomeshcat]
6877
deps =
69-
pytest
7078
pycollada >=0.6
79+
pytest
7180
robomeshcat >= 1.0.4
7281
commands =
7382
pytest --import-mode=importlib tests/loaders/test_robomeshcat.py
@@ -80,13 +89,6 @@ deps =
8089
commands =
8190
pytest --import-mode=importlib tests/loaders/test_yourdfpy.py
8291

83-
[testenv:loader-idyntree]
84-
deps =
85-
pytest
86-
idyntree >= 8.0.0
87-
commands =
88-
pytest --import-mode=importlib tests/loaders/test_idyntree.py
89-
9092
[flake8]
9193
max-line-length = 88
9294

0 commit comments

Comments
 (0)