diff --git a/setup.cfg b/setup.cfg index 4eecd4e..7c8a755 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,3 +31,17 @@ packages = [flake8] max-line-length = 88 ignore = E203,E501,E741,W503 + +[mypy] +# python_version = 3.9 +disallow_untyped_defs = true +disallow_incomplete_defs = true +no_implicit_optional = true +show_column_numbers = true +show_error_context = true +ignore_missing_imports = true +follow_imports = skip +check_untyped_defs = true +warn_unused_ignores = true +warn_return_any = true +strict_optional = false diff --git a/tox.ini b/tox.ini index f044740..fb4c757 100644 --- a/tox.ini +++ b/tox.ini @@ -24,6 +24,13 @@ deps = commands = flake8 {toxinidir}/sphinx_click/ +[testenv:mypy] +deps = + mypy + types-docutils +commands = + mypy sphinx_click + [testenv:docs] commands = pip install -e {toxinidir}/examples/