forked from charmed-hpc/slurm-charms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
104 lines (92 loc) · 2.12 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
97
98
99
100
101
102
103
104
[tox]
skipsdist = True
envlist = fmt, lint, type, unit
sitepackages = False
skip_missing_interpreters = False
minversion = 4.0.0
[vars]
tst_path = {toxinidir}/tests
[testenv]
allowlist_externals =
{toxinidir}/repository.py
[testenv:fetch-lib]
description = Fetch or bump the specified library.
basepython = python3
deps = pyyaml
commands =
python3 {toxinidir}/repository.py -v fetch-lib {posargs}
[testenv:stage]
description = Stages all the specified slurm charms
basepython = python3
deps =
pyyaml
commands =
python3 {toxinidir}/repository.py -v stage {posargs}
[testenv:build]
description = Build all the specified slurm charms
basepython = python3
deps =
pyyaml
commands =
python3 {toxinidir}/repository.py -v build {posargs}
[testenv:clean]
description = Cleans the specified charm from the build directory.
basepython = python3
deps =
pyyaml
commands =
python3 {toxinidir}/repository.py -v clean {posargs}
[testenv:fmt]
description = Apply formatting standards to code.
basepython = python3
deps =
pyyaml
black
commands =
python3 {toxinidir}/repository.py -v fmt {posargs}
[testenv:lint]
description = Check code against coding style standards.
basepython = python3
deps =
pyyaml
black
ruff
codespell
commands =
python3 {toxinidir}/repository.py -v lint {posargs}
[testenv:type]
description = Type checking with pyright.
basepython = python3
deps =
pyyaml
pyright
-r{toxinidir}/test-requirements.txt
commands =
python3 {toxinidir}/repository.py -v type {posargs}
[testenv:unit]
description = Run unit tests.
basepython = python3
deps =
pyyaml
pytest
coverage[toml]
-r{toxinidir}/test-requirements.txt
commands =
python3 {toxinidir}/repository.py -v unit {posargs}
[testenv:integration]
description = Run integration tests.
deps =
juju
pytest
pytest-operator
pytest-order
tenacity
-r{toxinidir}/test-requirements.txt
commands =
python3 {toxinidir}/repository.py -v integration -- {posargs}
[testenv:generate-token]
basepython = python3
deps =
pyyaml
commands =
python3 {toxinidir}/repository.py -v generate-token