-
Notifications
You must be signed in to change notification settings - Fork 28
/
tox.ini
55 lines (47 loc) · 936 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
47
48
49
50
51
52
53
54
55
[tox]
minversion = 3.8.0
envlist = py{38,39,310},bandit,black,flake8,isort
isolated_build = true
skip_missing_interpreters = true
[testenv]
setenv =
py{38,39,310}: COVERAGE_FILE = .coverage.{envname}
PYTHONPATH={toxinidir}
skip_install = true
sitepackages = false
whitelist_externals = poetry
usedevelop = true
commands =
pip3 install --upgrade poetry
poetry install
nvautoinstall --version
[testenv:bandit]
deps =
bandit >= 1.7.4
commands =
bandit -r nvautoinstall/ -lll
[testenv:black]
skip_install = true
deps =
black >= 21.11b1
commands =
black --diff nvautoinstall/
[black]
line-length = 100
[testenv:flake8]
skip_install = true
deps =
flake8 < 5
commands =
flake8 nvautoinstall/
[flake8]
max-line-length = 100
[testenv:isort]
skip_install = true
deps =
isort >= 5.10.1
commands =
isort --diff nvautoinstall/
[isort]
profile = black
known_first_party = ["nvautoinstall"]