Skip to content

Commit

Permalink
Merge pull request #47 from jamescooke/mypy
Browse files Browse the repository at this point in the history
Add mypy linting to Python 3
  • Loading branch information
jamescooke committed Oct 26, 2018
2 parents 68022c4 + d3fe7f2 commit 621b532
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ docs/_build/

# isort
/isort.out

# mypy
.mypy_cache/
2 changes: 2 additions & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ lazy-object-proxy==1.3.1
markupsafe==1.0
mccabe==0.6.1
more-itertools==4.3.0
mypy-extensions==0.4.1
mypy==0.641
packaging==17.1
parso==0.3.1 # via jedi
pathlib2==2.3.2
Expand Down
1 change: 1 addition & 0 deletions requirements/test.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Sphinx
flake8
isort
mypy
pygments
pylint
pytest
Expand Down
4 changes: 3 additions & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ lazy-object-proxy==1.3.1 # via astroid
markupsafe==1.0 # via jinja2
mccabe==0.6.1
more-itertools==4.3.0 # via pytest
mypy-extensions==0.4.1 # via mypy
mypy==0.641
packaging==17.1 # via sphinx
pathlib2==2.3.2 # via pytest
pluggy==0.7.1 # via pytest, tox
Expand All @@ -42,7 +44,7 @@ sphinx-rtd-theme==0.4.1
sphinx==1.7.7
sphinxcontrib-websupport==1.1.0 # via sphinx
tox==3.2.1
typed-ast==1.1.0 # via astroid
typed-ast==1.1.0 # via astroid, mypy
urllib3==1.23 # via requests
virtualenv==16.0.0 # via tox
wrapt==1.10.11 # via astroid
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
envlist = py{27,36}-{install,test,lint}
[testenv]
deps =
py36-{test,lint}: -rrequirements/test.txt
py36-{test,mypy,lint}: -rrequirements/test.txt
py27-{test,lint}: -rrequirements/test2.txt
commands =
install: flake8 --version
install: flake8 tests examples/good
test: pytest tests
mypy: mypy flake8_aaa --ignore-missing-imports
lint: make lint
setenv = IN_TOX = 1
whitelist_externals = make

0 comments on commit 621b532

Please sign in to comment.