-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
46 lines (38 loc) · 1.19 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
[tox]
envlist = py39,flake8,bandit,safety
requires = tox >= 4
setuptools >= 62.0.0
[testenv]
# workaround for pinned version for setuptools depended by zope-interface==6.4.post2
install_command = python -I -m pip install --no-deps {opts} {packages}
skip_install = True
deps = -r{toxinidir}/dev-requirements.txt
envdir = {toxworkdir}/shared_venv
commands = py.test {posargs}
[testenv:flake8]
commands = flake8
[flake8]
exclude = .tox/*,build/*,dist/*,__pycache__,.env/
max_line_length = 100
[pytest]
addopts = --cov=message_tagging_service --cov-report html --cov-report term
[coverage:report]
skip_covered = 1
show_missing = 1
omit =
.tox
.env
tests/*
[testenv:pip-compile]
basepython = python3.9
skip_install = true
commands =
pip-compile --output-file=requirements-no-hashes.txt {posargs}
pip-compile --generate-hashes --reuse-hashes --output-file=requirements.txt {posargs}
pip-compile --generate-hashes --reuse-hashes --output-file=dev-requirements.txt dev-requirements.in {posargs}
[testenv:bandit]
skip_install = true
commands = bandit -s B303 -r message_tagging_service
[testenv:safety]
skip_install = true
commands = safety check -r requirements.txt --ignore 65213,70612