forked from fedora-infra/flask-healthz
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (37 loc) · 977 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
[tox]
envlist = lint,format,security,py{37,38,39,310},flask1
isolated_build = true
[testenv]
passenv = HOME
sitepackages = false
skip_install = true
# Use allowlist for poetry when poetry 1.2+ is more widespread
# allowlist_externals =
# poetry
deps =
poetry>=1.2
commands_pre =
poetry install
commands =
poetry run pytest -vv --cov --cov-report=html --cov-report=xml --cov-report=term-missing flask_healthz {posargs}
[testenv:flask1]
commands =
pip uninstall -y black
pip install flask<2.0 MarkupSafe<2.0
pytest -v --cov --cov-report=xml flask_healthz {posargs}
[testenv:lint]
commands =
pre-commit run --all-files flake8
[testenv:format]
commands =
pre-commit run --all-files black
pre-commit run --all-files isort
[testenv:security]
commands =
pre-commit run --all-files bandit
pre-commit run --all-files safety
[flake8]
show-source = True
max-line-length = 100
ignore = E203,E231,W503
exclude = .git,.tox,dist,*egg