-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
42 lines (35 loc) · 891 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
31
32
33
34
35
36
37
38
39
40
41
42
[tox]
envlist = py{38,39,310}-dj{20,21,30,31,40}
[testenv]
usedevelop = true
commands =
pip install -e {toxinidir}[project]
pytest -vv --cov src --cov-report=xml:coverage.xml --cov-report=term-missing --strict -r fEsxXw {posargs:src}
deps =
pytest
pytest-django
pytest-cov
pytest-mock
dj20: Django>=2.0,<2.1
dj21: Django>=2.1,<2.2
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
dj40: Django>=4.0,<4.1
setenv =
DEBUG=1
PIP_ALLOW_EXTERNAL=true
[testenv:qa]
commands =
flake8 --show-source --max-complexity=8 --exclude migrations src/ --builtins=ModuleNotFoundError --ignore F405,W503
deps =
flake8
mccabe
[flake8]
exclude = crudlfap_example
putty-auto-ignore = true
putty-ignore =
crudlfap/shortcuts.py : F401
crudlfap/test_routers.py : D
[pytest]
testpaths = src
DJANGO_SETTINGS_MODULE = crudlfap_example.settings