@@ -10,7 +10,9 @@ basepython = python3
10
10
11
11
[testenv]
12
12
# From Poetry FAQ "Is tox supported?" (https://python-poetry.org/docs/faq/#use-case-2)
13
- allowlist_externals = poetry
13
+ allowlist_externals =
14
+ make
15
+ poetry
14
16
skip_install = True
15
17
setenv =
16
18
PYTHONPATH = {toxinidir}
@@ -35,42 +37,38 @@ commands = pytest examples/tests_on_toy_model.ipynb --nbmake --nbmake-timeout=30
35
37
[testenv:mypy]
36
38
deps =
37
39
commands_pre = poetry install --only main --only testenv --only mypy --sync
38
- commands =
39
- mypy black_it tests scripts examples
40
+ commands = make static
40
41
41
42
[testenv:black]
42
43
commands_pre = poetry install --only black --sync
43
- commands = black .
44
+ commands = make black
44
45
45
46
[testenv:black-check]
46
47
commands_pre = poetry install --only black --sync
47
- commands = black -- check --verbose .
48
+ commands = make black- check
48
49
49
50
[testenv:ruff]
50
51
commands_pre = poetry install --only ruff --sync
51
- commands = ruff check --fix --show-fixes .
52
+ commands = make ruff
52
53
53
54
[testenv:ruff-check]
54
55
commands_pre = poetry install --only ruff --sync
55
- commands = ruff check .
56
+ commands = make ruff- check
56
57
57
58
[testenv:bandit]
58
59
skipsdist = True
59
60
commands_pre = poetry install --only bandit --sync
60
- commands = bandit --configfile . bandit.yaml --recursive black_it tests scripts examples
61
+ commands = make bandit
61
62
62
63
[testenv:vulture]
63
64
skipsdist = True
64
65
commands_pre = poetry install --only vulture --sync
65
- commands =
66
- vulture black_it scripts/whitelists/package_whitelist.py
67
- vulture examples scripts/whitelists/examples_whitelist.py
68
- vulture tests scripts/whitelists/tests_whitelist.py
66
+ commands = make vulture
69
67
70
68
[testenv:darglint]
71
69
skipsdist = True
72
70
commands_pre = poetry install --only darglint --sync
73
- commands = darglint black_it
71
+ commands = make darglint
74
72
75
73
[testenv:docs]
76
74
# From Poetry FAQ "Is tox supported?" (https://python-poetry.org/docs/faq/#use-case-2)
@@ -88,7 +86,7 @@ commands =
88
86
89
87
[testenv:check-copyright]
90
88
deps =
91
- commands = python3 scripts/check_copyright.py
89
+ commands = make check-copyright
92
90
93
91
[testenv:spell_check]
94
92
deps =
0 commit comments