Skip to content

Commit

Permalink
tests: add mypy.ini
Browse files Browse the repository at this point in the history
This adds a mypy.ini configuration file.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
  • Loading branch information
guits committed Feb 8, 2024
1 parent a51f517 commit 3688f9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[mypy]
strict_optional = True
no_implicit_optional = True
warn_incomplete_stub = True
check_untyped_defs = True
show_error_context = True
allow_redefinition = True
disallow_untyped_defs = True

2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ skipsdist = True
basepython = python3
deps =
mypy
commands = mypy {toxinidir}/library {toxinidir}/module_utils
commands = mypy --config-file ./mypy.ini {toxinidir}/library {toxinidir}/module_utils

[testenv:flake8]
basepython = python3
Expand Down

0 comments on commit 3688f9a

Please sign in to comment.