forked from mozilla-services/python-dockerflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
58 lines (55 loc) · 1.48 KB
/
tox.ini
File metadata and controls
58 lines (55 loc) · 1.48 KB
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
[tox]
usedevelop = True
minversion = 1.8
envlist =
py38-lint,
py36-dj{111,21,22}-docs,
# the version matrix according to the Django docs:
# https://docs.djangoproject.com/en/2.0/faq/install/#what-python-version-can-i-use-with-django
py{27,36}-dj111-tests,
py{36,37,38}-dj{21,22}-tests,
py{27,36,37,38}-fl{011,012,10}-tests,
py{36,37,38}-s19-tests,
[testenv]
basepython =
py27: python2.7
py36: python3.6
py37: python3.7
py38: python3.8
usedevelop = true
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONPATH = {toxinidir}
# sanic integration requires python >= 3.5
tests-py{27,34}: PYTEST_ADDOPTS = --ignore=tests/test_sanic.py
deps =
-rtests/requirements.txt
dj111: -ctests/constraints/django-1.11.txt
dj21: -ctests/constraints/django-2.1.txt
dj21: -ctests/constraints/django-2.2.txt
fl011: -ctests/constraints/flask-0.11.txt
fl012: -ctests/constraints/flask-0.12.txt
fl10: -ctests/constraints/flask-1.0.txt
s19: -ctests/constraints/sanic-19.txt
commands =
python --version
tests: pytest {posargs:tests}
docs: sphinx-build -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
[testenv:py38-lint]
basepython = python3.8
deps =
flake8
flake8-black
flake8-isort
twine
check-manifest
commands =
flake8 src/dockerflow tests/
check-manifest -v
python setup.py sdist
twine check dist/*
[flake8]
exclude =
.tox
py27: src/dockerflow/sanic/
ignore=E501,E127,E128,E124