diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,8 +27,7 @@ - id: mypy name: mypy entry: mypy - args: [swh] - pass_filenames: false + pass_filenames: true language: system types: [python] diff --git a/mypy.ini b/mypy.ini new file mode 100644 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,6 @@ +[mypy] +namespace_packages = True +warn_unused_ignores = True + +[mypy-testinfra.*] +ignore_missing_imports = True