forked from django-otp/django-otp-yubikey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
30 lines (27 loc) · 776 Bytes
/
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
[tox]
envlist = static
py37-django{22,32}
py38-django40
coverage
[testenv]
setenv = PYTHONPATH = {env:PYTHONPATH:}{:}{toxinidir}/test
PYTHONWARNINGS = default
DJANGO_SETTINGS_MODULE = test_project.settings
deps = freezegun
django22: Django==2.2.*
django32: Django==3.2.*
django40: Django==4.0.*
commands = python -m django test otp_yubikey
[testenv:static]
basepython = python3
deps = flake8
isort==5.*
commands = {envbindir}/flake8 src
{envbindir}/isort --check src
[testenv:coverage]
basepython = python3
deps = {[testenv]deps}
coverage
commands = {envbindir}/coverage erase
{envbindir}/coverage run -m django test otp_yubikey
{envbindir}/coverage report