-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
46 lines (40 loc) · 898 Bytes
/
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
[tox]
isolated_build = true
envlist = py311,py312
[gh]
python =
3.11 = py311,black,bandit,coverage,mypy
3.12 = py312
[testenv]
skip_install=True
setenv =
PYTHONPATH=$TOX_WORK_DIR/..
#PYTHONWARNINGS=always
allowlist_externals=
poetry
commands_pre=
poetry install --sync --only=main,test --all-extras
commands =
pytest
[testenv:coverage]
commands =
coverage erase
coverage run -m pytest
coverage report
[testenv:bandit]
skip_install=True
commands_pre=
poetry install --sync --only=dev --all-extras
commands =
bandit -c pyproject.toml -r --severity-level high jasmin_slurm_sync
[testenv:black]
skip_install=True
commands_pre=
poetry install --sync --only=dev --all-extras
commands = black --check --fast .
[testenv:mypy]
skip_install=True
commands_pre=
poetry install --sync --only=main,test --all-extras
commands =
mypy jasmin_slurm_sync