-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
80 lines (71 loc) · 1.57 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[tox]
envlist = bandit,lint,py3,docs
requires =
poetry
[testenv]
allowlist_externals = poetry
skip_install = true
no_package = true
[testenv:py3]
commands_pre =
poetry install --only=main --extras=test
commands =
pytest \
--cov-reset \
--cov-config=.coveragerc \
--cov=waiverdb \
--cov-report=term \
--cov-report=xml \
--cov-report=html \
--ignore=functional-tests \
{posargs}
[testenv:functional]
skip_install = true
commands_pre =
poetry install --only=main --extras=test --extras=functional-test
setenv =
WAIVERDB_TEST_URL=http://127.0.0.1:5004
KEYCLOAK_TEST_URL=http://127.0.0.1:8080
MOZ_HEADLESS=1
allowlist_externals =
poetry
docker/healthcheck.sh
commands =
docker/healthcheck.sh
pytest \
--driver=Firefox \
functional-tests/ \
{posargs}
[testenv:bandit]
deps =
bandit
commands =
bandit \
--exclude tests \
--recursive waiverdb
[testenv:docs]
changedir = docs
commands_pre =
poetry install --only=main --extras=docs
allowlist_externals =
poetry
mkdir
rm
commands=
mkdir -p _static
rm -rf _build/
sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
[testenv:lint]
deps =
flake8
commands =
python -m flake8 {posargs}
[pytest]
testpaths = tests/
[flake8]
show-source = True
max-line-length = 100
exclude = .git,.tox,.venv,dist,*egg,env_waiverdb,docs,conf,waiverdb/migrations
# E124: closing bracket does not match visual indentation
# W503 line break before binary operator
ignore = E124, W503