-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
54 lines (47 loc) · 1.05 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
[tox]
envlist = py{38,39,310,311,312}-django{42,50}, flake8
[travis]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv:flake8]
basepython = python
deps = flake8
commands = flake8 otp_u2f
[testenv]
allowlist_externals = ./manage.py
deps =
django42: django>=4.2,<4.3
django40: django>=5.0,<5.1
extras =
kleides-mfa
test
setenv =
PYTHONPATH = {toxinidir}
PYTHONDONTWRITEBYTECODE=1
DJANGO_SETTINGS_MODULE=tests.settings
commands =
./manage.py check
pytest --cov --cov-config tox.ini --cov-report term-missing:skip-covered --no-cov-on-fail --nomigrations {posargs}
[coverage:run]
branch = True
source = otp_u2f
omit =
otp_u2f/migrations/*
tests/*
[coverage:report]
exclude_lines =
pragma: no cover
[flake8]
exclude =
otp_u2f/migrations/*
max-complexity=8
ignore=E121,E123,E126,E226,E24,E704,W503
select=E,F,W,C
[pytest]
# Filter warnings from u2f_host package.
filterwarnings =
ignore:signer and verifier have been deprecated*:cryptography.utils.CryptographyDeprecationWarning