-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
67 lines (59 loc) · 1.22 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
67
[tox]
envlist = py{312,311}-dj{5.0,4.2}
minversion = 3.4.0
isolated_build = True
[testenv]
passenv =
DATABASE_URL
deps =
-r requirements-test.txt
-r demo/requirements.txt
commands =
py{312,311}-dj4.2: pip install django==4.2.*
py{312,311}-dj5.0: pip install django==5.0.*
flake8 rest_auth_toolkit tests demo
pytest {posargs}
[testenv:coverage]
commands =
pip install -r requirements-test.txt -r demo/requirements.txt
coverage run -m pytest -qq {posargs}
coverage report
[testenv:pkg]
deps =
pip-audit
flit
twine
readme_renderer[md]
commands =
flit install
pip-audit
flit build
twine check dist/*
[pytest]
env =
RAT_TESTING=1
DJANGO_SETTINGS_MODULE=demo.settings
addopts = -svv --showlocals --reuse-db
pythonpath = demo
testpaths = tests/unit tests/functional
norecursedirs =
.tox
__pycache__
migrations
templates
xfail_strict = true
junit_family = xunit2
[coverage:run]
source = rest_auth_toolkit, demo, tests
branch = 1
[coverage:report]
skip_covered = 1
show_missing = 1
fail_under = 80
exclude_lines =
pragma: no cover
[flake8]
max-line-length = 89
exclude = .git,.tox,__pycache__,migrations,templates
ignore = E731,N806
show-source = True