-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
75 lines (67 loc) · 1.62 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
68
69
70
71
72
73
74
75
[tox]
skipsdist = True
envlist =
{py39,py310,py311}-{sqlite,postgres}-django-{32,40,41,42}
[travis]
python =
3.11: py311
3.10: py310
3.9: py39
[pytest]
# -- recommended but optional:
python_files = tests.py test_*.py *_tests.py
[testenv]
whitelist_externals = poetry
skip_install = true
setenv =
DJANGO_SETTINGS_MODULE=tests.settings
DATABASE_URL=sqlite:memory:
PIPENV_VERBOSITY=-1
PYTHONPATH = .:src
postgres: DATABASE_URL = postgres://:@:/django-shared-property
deps =
pytest-cov
pytest-pdb
django-32: Django>=3.2,<4.0
django-40: Django>=4.0,<4.1
django-41: Django>=4.1,<4.2
django-42: Django>=4.2,<4.3
django: dj_database_url
django: pytest-django
postgres: psycopg2-binary
basepython =
py311: python3.11
py310: python3.10
py39: python3.9
py38: python3.8
py37: python3.7
py36: python3.6
py35: python3.5
; If you want to make tox run the tests with the same versions, use poetry
; to install the dependencies
commands =
; poetry install -v
; poetry run pytest --cov=src/django_shared_property tests/
pytest --cov=src/django_shared_property -s tests/tests/
[testenv:flake8]
basepython=python3.11
deps =
flake8
flake8-deprecated
flake8-debugger
flake8-tidy-imports
flake8-bugbear
flake8-eradicate
flake8-commas
commands =
flake8 --count src/django_shared_property
[testenv:black]
basepython=python3.11
deps = black
commands = black --diff --check src/django_shared_property tests/ --line-length 119
[testenv:isort]
basepython=python3.11
deps=
isort
commands=
isort --diff src tests --src src/