forked from spec-first/connexion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
54 lines (47 loc) · 1.5 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
[flake8]
max-line-length=170
exclude=connexion/__init__.py
[tox]
envlist =
{py36}-{min,pypi,dev}
{py37}-{min,pypi,dev}
{py38}-{min,pypi,dev}
isort-check
isort-check-examples
isort-check-tests
flake8
[travis]
3.6=py36-min,py36-pypi
3.7=py37-min,py37-pypi,isort-check,isort-check-examples,isort-check-tests,flake8
3.8=py38-min
[testenv]
setenv=PYTHONPATH = {toxinidir}:{toxinidir}
deps=pytest
commands=
pip install Requirements-Builder
min: requirements-builder --level=min -o {toxworkdir}/requirements-min.txt setup.py
min: pip install -r {toxworkdir}/requirements-min.txt
pypi: requirements-builder --level=pypi -o {toxworkdir}/requirements-pypi.txt setup.py
pypi: pip install -r {toxworkdir}/requirements-pypi.txt
dev: requirements-builder --level=dev --req=requirements-devel.txt -o {toxworkdir}/requirements-dev.txt setup.py
dev: pip install -r {toxworkdir}/requirements-dev.txt
py3{6,7,8}: pip install -r requirements-aiohttp.txt
python setup.py test
[testenv:flake8]
deps=flake8==3.6.0
commands=python setup.py flake8
[testenv:isort-check]
basepython=python3
deps=isort==4.3.15
changedir={toxinidir}/connexion
commands=isort -ns __init__.py -rc -c -df .
[testenv:isort-check-examples]
basepython=python3
deps=isort==4.3.15
changedir={toxinidir}/examples
commands=isort -ns __init__.py -o connexion -rc -c -df .
[testenv:isort-check-tests]
basepython=python3
deps=isort==4.3.15
changedir={toxinidir}/tests
commands=isort -ns __init__.py -p connexion -rc -c -df .