Skip to content

Commit

Permalink
Configure mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Osvaldo Barrera authored and stephenfin committed Apr 7, 2022
1 parent e31c727 commit cdcfa3e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit cdcfa3e

Please sign in to comment.