-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
110 lines (96 loc) · 2.04 KB
/
Copy pathtox.ini
File metadata and controls
110 lines (96 loc) · 2.04 KB
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
105
106
107
108
109
110
[tox]
skip_missing_interpreters = True
envlist =
py{38, 39, 310, 311}
inst,
black,
isort,
flake8,
codespell,
bandit,
doc,
stats
[testenv]
deps =
.
.[test]
commands =
; Use python -m to use the binary from the virtualenv if it is also
; installed in the system. Do not use {envbindir} since it would require
; to install it in tox virtualenv
python -m coverage run --append --module pytest -svv tests/unit
# test that it can be installed with custom commands and clean env
[testenv:inst]
recreate = True
skip_install = True
commands =
pip install .
[testenv:integration]
ignore_errors = True
deps = .[test]
allowlist_externals =
bash
commands =
bash -c tests/integration/run.sh {envtmpdir}/chutney
[testenv:black]
skip_install = True
deps =
black
commands =
black --check --diff sbws tests
[testenv:isort]
skip_install = True
deps =
isort
commands =
isort --check-only --diff sbws tests
[testenv:flake8]
skip_install = True
deps = flake8-docstrings
commands =
flake8 sbws tests
[testenv:codespell]
skip_install = True
deps = codespell
commands =
codespell sbws tests docs
[testenv:clean]
skip_install = True
deps = coverage
changedir = {toxinidir}
commands = python -m coverage erase
[testenv:stats]
skip_install = True
deps = coverage
commands=
; nothing to combine while not using several python versions
; python -m coverage combine
python -m coverage report
python -m coverage html
[testenv:doc]
deps =
.
.[doc]
allowlist_externals = make
changedir = docs
commands =
make html
; this requires build the pdf images
; make latexpdf
; make man
; this requires Internet, it should not be in envlist
[testenv:doclinks]
deps = .[doc]
allowlist_externals = make
changedir = docs
commands =
make linkcheck
; Not included in the envlist, useful to run sometimes.
[testenv:bandit]
deps = bandit
; --skip B101 ; B101: assert_used
commands = bandit -r --exclude sbws/_version.py sbws/ test
; Requires Internet
[testenv:safety]
deps = safety
commands = safety check