-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtox.ini
More file actions
27 lines (24 loc) · 770 Bytes
/
tox.ini
File metadata and controls
27 lines (24 loc) · 770 Bytes
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
[pycodestyle]
show-source = True
statistics = True
exclude = tests/test_project
[tox]
envlist = py27-django111,py36-django{111,20},codestyle
[testenv]
setenv =
DJANGO_SETTINGS_MODULE=tests.test_project.test_project.settings
PYTHONPATH=tests/test_project
deps =
-r{toxinidir}/requirements_test.txt
django111: Django>=1.11,<2.0
django20: Django>=2.0
commands =
{posargs:pytest --cov-report term --cov-report xml --junitxml test_results.xml --cov=version_endpoint}
# allows overriding the command to run:
# tox -- py.test -k test_something
# tox -e py34 -- python ...
[testenv:codestyle]
commands =
flake8 src/version_endpoint tests
pydocstyle src/version_endpoint
isort --check-only --diff --recursive src/version_endpoint tests