-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtox.ini
More file actions
89 lines (80 loc) · 1.75 KB
/
Copy pathtox.ini
File metadata and controls
89 lines (80 loc) · 1.75 KB
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
81
82
83
84
85
86
87
88
89
[tox]
envlist = bandit,lint,py3,docs
requires =
uv
[testenv]
basepython = python3.13
allowlist_externals = uv
skip_install = true
no_package = true
[testenv:py3]
commands_pre =
uv sync --extra test
commands =
uv run pytest \
--cov-reset \
--cov-config=.coveragerc \
--cov=. \
--cov-report=term \
--cov-report=xml \
--cov-report=html \
--junit-xml=report.xml \
--ignore=functional-tests \
{posargs}
[testenv:functional]
commands_pre =
uv sync --extra test --extra 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 =
uv
docker/healthcheck.sh
commands =
docker/healthcheck.sh
uv run pytest \
--cov-reset \
--cov-config=.coveragerc \
--cov=. \
--cov-report=term \
--cov-report=xml \
--cov-report=html \
--junit-xml=report.xml \
--driver=Firefox \
functional-tests/ \
tests/ \
{posargs}
[testenv:bandit]
deps =
bandit
commands =
bandit \
--exclude tests \
--recursive waiverdb
[testenv:docs]
changedir = docs
commands_pre =
uv sync --extra docs
allowlist_externals =
uv
mkdir
rm
commands=
mkdir -p _static
rm -rf _build/
uv run 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