Skip to content

Commit ba12f3b

Browse files
committed
Updated tox.ini
1 parent 549d332 commit ba12f3b

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

tox.ini

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ commands = bumpversion --verbose {posargs}
4444

4545
[testenv:build]
4646
skip_install = true
47+
changedir = {toxinidir}
4748
deps = setuptools >= 46.1.3
4849
wheel >= 0.34.2
4950
commands = python setup.py sdist bdist_wheel
@@ -59,12 +60,10 @@ commands =
5960
flake8 domdf_python_tools
6061
flake8 tests
6162

62-
63-
64-
6563
[testenv:yapf]
6664
basepython = python3.6
6765
skip_install = true
66+
ignore_errors=true
6867
deps =
6968
yapf
7069
commands =
@@ -74,18 +73,29 @@ commands =
7473
[testenv:isort]
7574
basepython = python3.6
7675
skip_install = true
76+
ignore_errors=true
7777
deps =
7878
isort
79-
8079
commands =
81-
82-
8380
isort -rc domdf_python_tools
84-
85-
8681
isort -rc tests
8782

83+
[testenv:mypy]
84+
basepython = python3.6
85+
skip_install = true
86+
ignore_errors=true
87+
deps =
88+
mypy
89+
commands =
90+
mypy --recursive domdf_python_tools
91+
mypy --recursive tests
92+
8893
[flake8]
8994
max-line-length = 120
9095
select = 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
9196
exclude = .git,__pycache__,doc-source,old,build,dist,make_conda_recipe.py,__pkginfo__.py,setup.py
97+
98+
[mypy]
99+
python_version = 3.6
100+
ignore_missing_imports = True
101+
namespace_packages = True

0 commit comments

Comments
 (0)