Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
Allow tox to run mypy type checker
Browse files Browse the repository at this point in the history
I only enabled mypy for python 3.3 and above, since I don't think
there's a python 2 version. (The python 3 version can check python 2
types, but I'm not sure how to do that within tox.)
  • Loading branch information
DarwinAwardWinner committed Nov 13, 2016
1 parent a6598a4 commit b1bd9e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
[tox]
envlist = py{26,27,py,33,34,35}-{test,stylecheck}
envlist = py{26,27,py,33,34,35}-{test,stylecheck},py{33,34,35}-typecheck

[testenv]
deps =
test: pytest
stylecheck: flake8
stylecheck: flake8-import-order
typecheck: mypy-lang
typecheck: typed-ast
typecheck: typing
commands =
test: py.test []
stylecheck: flake8 []
typecheck: mypy atomicwrites

0 comments on commit b1bd9e2

Please sign in to comment.