-
Notifications
You must be signed in to change notification settings - Fork 53
/
tox.ini
41 lines (37 loc) · 1.41 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
[tox]
# See https://docs.djangoproject.com/en/5.0/faq/install/#what-python-version-can-i-use-with-django
# EOL: https://endoflife.date/django
envlist =
py{38,39}-dj22-drf{311,313}
py{38,39,310}-dj32-drf{314}
py{38,39,310,311,312}-dj42-drf{314}
py{310,311,312}-dj50-drf{314}
[pytest]
norecursedirs = examples
[flake8]
ignore = F403 F405 E731
max-line-length = 120
[testenv]
download = true
constrain_package_deps = true
use_frozen_constraints = false
deps =
-rrequirements/dev.txt
dj22: Django~=2.2.1
dj22: pytest-django~=4.5.2
dj32: Django~=3.2.0
dj32: pytest-django~=4.5.2
dj42: Django~=4.2.9
dj42: pytest-django~=4.5.2
dj50: Django~=5.0.1
dj50: pytest-django~=4.5.2
drf311: djangorestframework~=3.11.2
drf313: djangorestframework~=3.13.1
drf314: djangorestframework~=3.14.0
commands =
pytest django_mock_queries/ tests/ --cov-report term-missing --cov=django_mock_queries
python -c "import subprocess; subprocess.check_call(['./manage.py', 'test', '--settings=users.settings_mocked'], cwd='examples/users')"
python -c "import subprocess; subprocess.check_call(['./manage.py', 'test'], cwd='examples/users')"
python -c "import subprocess; subprocess.check_call(['pytest', '--ds=users.settings_mocked'], cwd='examples/users')"
python -c "import subprocess; subprocess.check_call(['pytest'], cwd='examples/users')"
flake8 django_mock_queries/ tests/