-
-
Notifications
You must be signed in to change notification settings - Fork 448
/
tox.ini
66 lines (61 loc) · 1.32 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
[tox]
envlist =
py{38,39,310,311,312}-dj42-{normal,yubikey,custom_user,webauthn}
py{310,311,312}-dj{50,51,main}-{normal,yubikey,custom_user,webauthn}
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[gh-actions:env]
DJANGO =
4.2: dj42
5.0: dj50
5.1: dj51
main: djmain
VARIANT =
normal: normal
webauthn: webauthn
yubikey: yubikey
custom_user: custom_user
[testenv]
passenv =
HOME
DISPLAY
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=always
custom_user: AUTH_USER_MODEL=tests.User
basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
deps =
dj42: Django<5.0
dj50: Django<5.1
dj51: Django<5.2
djmain: https://github.com/django/django/archive/main.tar.gz
webauthn: -rrequirements_e2e.txt
extras =
tests
call
phonenumberslite
yubikey: yubikey
webauthn: webauthn
ignore_outcome =
djmain: True
commands =
coverage run {env:COVERAGE_OPTIONS:} {envbindir}/django-admin test -v 2 --pythonpath=./ --settings=tests.settings
coverage report
[testenv:ruff]
basepython = python3
extras = linting
commands = ruff check .
[testenv:isort]
basepython = python3
extras = linting
commands = isort -c --diff example tests two_factor