forked from jazzband/django-two-factor-auth
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
62 lines (57 loc) · 1.29 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
[tox]
; Minimum version of Tox
minversion = 1.8
envlist =
py{37,38,39,310}-dj32-{normal,yubikey,custom_user},
py{38,39,310}-dj{40,41}-{normal,yubikey,custom_user}
py{38,39,310}-djmain-{normal,yubikey,custom_user}
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[gh-actions:env]
DJANGO =
3.2: dj32
4.0: dj40
4.1: dj41
main: djmain
VARIANT =
normal: normal
yubikey: yubikey
custom_user: custom_user
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=always
custom_user: AUTH_USER_MODEL=tests.User
basepython =
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
deps =
dj32: Django<4.0
dj40: Django<4.1
dj41: Django<4.2
djmain: https://github.com/django/django/archive/main.tar.gz
yubikey: django-otp-yubikey
coverage
extras =
call
phonenumberslite
yubikey: yubikey
ignore_outcome =
djmain: True
commands =
coverage run {env:COVERAGE_OPTIONS:} {envbindir}/django-admin test -v 2 --pythonpath=./ --settings=tests.settings
coverage report
[testenv:flake8]
basepython = python3
deps = flake8<=3.99
commands = flake8 example tests two_factor
[testenv:isort]
basepython = python3
deps = isort<=5.99
commands = isort -rc -c --diff example tests two_factor