forked from ioggstream/bandit-report-artifacts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
46 lines (37 loc) · 993 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]
envlist = py3, safety
skipsdist=True
[testenv]
deps =
-rrequirements.txt
-rrequirements-dev.txt
# Uncomment here to set an extra PIP_INDEX_URL
# setenv =
# PIP_EXTRA_INDEX_URL = https://mypypiserver.org
setenv =
PYTHONPATH=:.:
# The CI reuses the sitepackages we baked in the image,
# by setting the VIRTUALENV_SYSTEM_SITE_PACKAGES=True.
# In that case the commands installed in the virtualenv
# must be invoked using "python -m".
# See https://tox.wiki/en/4.6.4/config.html#system_site_packages
sitepackages = False
# To show pytest logs in console, use
# tox -- --log-cli-level=DEBUG
commands =
python -m pytest -vv -n auto {posargs}
[testenv:safety]
envdir = {toxworkdir}/py3
deps =
-rrequirements.txt
-rrequirements-dev.txt
safety
setenv =
PYTHONPATH=:.:
commands =
safety check --short-report -r requirements.txt
[flake8]
# Ignore long lines in flake8 because
# they are managed by black and we
# want to support links.
max-line-length = 150