@@ -6,6 +6,7 @@ envlist = py36, py37, py38, pypy3, docs
66skip_missing_interpreters = True
77requires = pip >= 19.0.0
88
9+
910[travis]
1011python =
1112 3.6: py36, docs
@@ -14,13 +15,15 @@ python =
1415 pypy3: pypy3
1516
1617
18+
1719[build-system]
1820requires = [
1921 setuptools >= 46.1.3
2022 wheel >= 0.34.2
2123 ]
2224build-backend = " setuptools"
2325
26+
2427[testenv]
2528# Install test requirements
2629deps = -r{toxinidir}/tests/requirements.txt
@@ -30,13 +33,15 @@ commands =
3033; Run tests
3134 python -m pytest --cov =domdf_python_tools --reruns 1 --reruns-delay 30 -r aR tests/
3235
36+
3337[testenv:docs]
3438basepython = python3.6
3539changedir ={toxinidir}/doc-source
3640deps = -r{toxinidir}/requirements.txt
3741 -r{toxinidir}/doc-source/requirements.txt
3842commands = sphinx-build -M html . ./build
3943
44+
4045[testenv:bumpversion]
4146skip_install = true
4247deps = bump2version
@@ -49,52 +54,48 @@ deps = setuptools >= 46.1.3
4954 wheel >= 0.34.2
5055commands = python setup.py sdist bdist_wheel
5156
57+
5258[testenv:lint]
5359basepython = python3.6
5460ignore_errors =true
5561skip_install = true
5662deps =
5763 autopep8 >=1.5.2
5864 flake8 >=3.8.2
59- commands =
60- flake8 domdf_python_tools
61- flake8 tests
65+ commands = flake8 domdf_python_tools tests
66+
6267
6368[testenv:yapf]
6469basepython = python3.6
6570skip_install = true
6671ignore_errors =true
67- deps =
68- yapf
69- commands =
70- yapf -i domdf_python_tools --recursive
71- yapf -i --recursive tests
72+ deps = yapf
73+ commands = yapf -i --recursive domdf_python_tools tests
74+
7275
7376[testenv:isort]
7477basepython = python3.6
7578skip_install = true
7679ignore_errors =true
7780deps =
7881 isort
79- commands =
80- isort -rc domdf_python_tools
81- isort -rc tests
82+ commands = isort --recursive domdf_python_tools tests
83+
8284
8385[testenv:mypy]
8486basepython = python3.6
8587skip_install = true
8688ignore_errors =true
87- deps =
88- mypy
89- commands =
90- mypy --recursive domdf_python_tools
91- mypy --recursive tests
89+ deps = mypy
90+ commands = mypy domdf_python_tools tests
91+
9292
9393[flake8]
9494max-line-length = 120
9595select = E301 E303 E304 E305 E306 E502 W291 W293 W391 E226 E225 E241 E231 E101 E111 E112 E113 E121 E122 E124 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E227 E228 E242 E251 E261 E262 E271 E272 E402 E703 E711 E712 E713 E714 E721 W504 E302 W292 E265
9696exclude = .git,__pycache__,doc-source,old,build,dist,make_conda_recipe.py,__pkginfo__.py,setup.py
9797
98+
9899[mypy]
99100python_version = 3.6
100101ignore_missing_imports = True
0 commit comments