-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
60 lines (53 loc) · 1.28 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
[tox]
envlist = py{39,310,311}-d{22,32,42}
isolated_build = true
;skipsdist=True
[pytest]
python_paths=./tests/demoapp/
django_find_project = false
DJANGO_SETTINGS_MODULE=demo.settings
python_files=tests/test_*.py
addopts =
-vv
--pyargs drf_api_checker
--doctest-modules
-p no:warnings
-p no:cov
--reuse-db
--tb=short
--capture=no
--echo-version django
; --cov=drf_api_checker
; --cov-report=html
; --cov-config=tests/.coveragerc
[testenv]
;setenv =
; PYTHONPATH = {toxinidir}:{toxinidir}/drf_api_checker
;install_command=pip install {opts} {packages}
passenv =
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
PYTHONDONTWRITEBYTECODE
DJANGO
deps=
d22: django==2.2.*
d32: django==3.2.*
d40: django==4.2.*
trunk: git+git://github.com/django/django.git#egg=django
poetry
codecov
setenv=
d22: DJANGO="django<3.0"
d32: DJANGO="django<4.0"
d40: DJANGO="django<5.0"
commands =
poetry install --no-root
{posargs:poetry run coverage run --rcfile=tests/.coveragerc --source drf_api_checker -m pytest tests --create-db}
[flake8]
multi_line_output = 3
max-complexity = 14
max-line-length = 120
exclude = migrations settings
ignore = E401,W391,E128,E261,E731,Q000,W504,W606
putty-ignore =