-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
59 lines (51 loc) · 1.2 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
[tox]
minversion = 3.3
isolated_build = true
envlist = flake8, bandit
[default]
pipenv =
PIP_INDEX_URL = {env:PIP_INDEX_URL:http://10.240.212.150:8081/repository/pypi-mirror/simple/}
PIP_TRUSTED_HOST = {env:PIP_TRUSTED_HOST:10.240.212.150}
[testenv]
setenv =
PYTHONPATH = {toxinidir}
{[default]pipenv}
[testenv:flake8]
deps =
flake8>=3.4
flake8-isort>=2.2
skip_install = true
commands =
flake8 lico setup.py install.py
[testenv:bandit]
deps =
bandit>=1.7
skip_install = true
commands =
bandit --severity-level {env:BANDIT_SEVERITY_LEVEL:low} -r lico
[testenv:bandit-report]
allowlist_externals = mkdir
deps =
bandit >= 1.7
lico-bandit-formatter
skip_install = true
commands =
mkdir -p {env:BANDIT_REPORT_FOLDER:report}
bandit -r lico -f lico-text -o {env:BANDIT_REPORT_FOLDER:report}/{env:BANDIT_REPORT_FILENAME:bandit.txt} --exit-zero --ignore-nosec
[testenv:upload]
deps =
setuptools_scm[toml]>=6.2
cython
twine>=3.8
skip_install = true
commands =
python setup.py sdist
twine upload dist/*.tar.gz
[flake8]
max-complexity = 10
show-source = true
extend-ignore=E402
[isort]
profile = django
default_section = THIRDPARTY
known_first_party = lico