-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
52 lines (47 loc) · 1.1 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
# Tox (http://tox.testrun.org/) is a tool for running tests in multiple
# virtualenvs. This configuration file helps to run the test suite on all
# supported Python versions. To use it, "pip install tox" and then run "tox"
# from this directory.
[tox]
skipsdist = true
envlist =
py{38,39,310}-django{32,40,41}
py{36,37}-django32
docs
pre_commit
[testenv]
usedevelop = true
passenv = DJANGO_SETTINGS_MODULE,PYTHONPATH,HOME,DISPLAY
setenv =
PYTHONDONTWRITEBYTECODE=1
DJANGO_SETTINGS_MODULE=tests.settings
deps =
django32: Django>=3.2, <4
django40: Django>=4.0, <4.1
django41: Django>=4.1, <4.2
pytest
pytest-django
pytest-cov
commands =
py.test --cov=django_route
[testenv:flake8]
basepython = python3
usedevelop = false
deps = flake8
commands = flake8
[testenv:docs]
basepython = python3
usedevelop = true
deps =
django
Sphinx
sphinx_rtd_theme
changedir = {toxinidir}/docs
whitelist_externals = make
commands = make html
[testenv:pre_commit]
basepython = python3
usedevelop = false
deps = pre-commit
changedir = {toxinidir}
commands = pre-commit run --all-files