Skip to content

Commit

Permalink
Add mypy support
Browse files Browse the repository at this point in the history
  • Loading branch information
cburgdorf committed Apr 26, 2019
1 parent 3c1bbfe commit 720b2cf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[mypy]

check_untyped_defs = True
disallow_incomplete_defs = True
disallow_untyped_defs = True
disallow_any_generics = True
disallow_untyped_calls = True
disallow_untyped_decorators = True
disallow_subclassing_any = True
ignore_missing_imports = True
strict_optional = True
strict_equality = True
warn_redundant_casts = True
warn_return_any = True
warn_unused_configs = True
warn_unused_ignores = True
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
'lint': [
"flake8==3.4.1",
"isort>=4.2.15,<5",
"mypy==0.701",
"pydocstyle>=3.0.0,<4",
],
'doc': [
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ whitelist_externals=make
basepython=python
extras=lint
commands=
mypy -p {toxinidir}/<MODULE_NAME> --config-file {toxinidir}/mypy.ini
flake8 {toxinidir}/<MODULE_NAME> {toxinidir}/tests
isort --recursive --check-only --diff {toxinidir}/<MODULE_NAME> {toxinidir}/tests
pydocstyle {toxinidir}/<MODULE_NAME> {toxinidir}/tests

0 comments on commit 720b2cf

Please sign in to comment.