Skip to content

Commit 3084f39

Browse files
author
muxator
committed
tox: let's take commands from the Makefile where possible (COMPLETE_ME)
The "make" command should be available on every supported platform in our Github CI runners.
1 parent bd6e264 commit 3084f39

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

tox.ini

+8-11
Original file line numberDiff line numberDiff line change
@@ -45,37 +45,34 @@ commands =
4545

4646
[testenv:black]
4747
commands_pre = poetry install --only black --sync
48-
commands = black .
48+
commands = make black
4949

5050
[testenv:black-check]
5151
commands_pre = poetry install --only black --sync
52-
commands = black --check --verbose .
52+
commands = make black-check
5353

5454
[testenv:ruff]
5555
commands_pre = poetry install --only ruff --sync
56-
commands = ruff check --fix --show-fixes .
56+
commands = make ruff
5757

5858
[testenv:ruff-check]
5959
commands_pre = poetry install --only ruff --sync
60-
commands = ruff check .
60+
commands = make ruff-check
6161

6262
[testenv:bandit]
6363
skipsdist = True
6464
commands_pre = poetry install --only bandit --sync
65-
commands = bandit --configfile .bandit.yaml --recursive black_it tests scripts examples
65+
commands = make bandit
6666

6767
[testenv:vulture]
6868
skipsdist = True
6969
commands_pre = poetry install --only vulture --sync
70-
commands =
71-
vulture black_it scripts/whitelists/package_whitelist.py
72-
vulture examples scripts/whitelists/examples_whitelist.py
73-
vulture tests scripts/whitelists/tests_whitelist.py
70+
commands = make vulture
7471

7572
[testenv:darglint]
7673
skipsdist = True
7774
commands_pre = poetry install --only darglint --sync
78-
commands = darglint black_it
75+
commands = make darglint
7976

8077
[testenv:docs]
8178
# From Poetry FAQ "Is tox supported?" (https://python-poetry.org/docs/faq/#use-case-2)
@@ -103,7 +100,7 @@ commands =
103100

104101
[testenv:check-copyright]
105102
deps =
106-
commands = python3 scripts/check_copyright.py
103+
commands = make check-copyright
107104

108105
[testenv:spell_check]
109106
deps =

0 commit comments

Comments
 (0)