diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,6 +12,16 @@ hooks: - id: codespell +- repo: local + hooks: + - id: mypy + name: mypy + entry: mypy + args: [swh] + pass_filenames: false + language: system + types: [python] + # unfortunately, we are far from being able to enable this... # - repo: https://github.com/PyCQA/pydocstyle.git # rev: 4.0.0 diff --git a/mypy.ini b/mypy.ini --- a/mypy.ini +++ b/mypy.ini @@ -5,6 +5,9 @@ # 3rd party libraries without stubs (yet) +[mypy-aiohttp.*] +ignore_missing_imports = True + [mypy-aiohttp_utils.*] ignore_missing_imports = True @@ -23,9 +26,15 @@ [mypy-django.*] # false positive, only used my hypotesis' extras ignore_missing_imports = True +[mypy-hypothesis.*] +ignore_missing_imports = True + [mypy-msgpack.*] ignore_missing_imports = True +[mypy-multidict.*] +ignore_missing_imports = True + [mypy-pkg_resources.*] ignore_missing_imports = True @@ -38,5 +47,8 @@ [mypy-requests_mock.*] ignore_missing_imports = True +[mypy-setuptools.*] +ignore_missing_imports = True + [mypy-systemd.*] ignore_missing_imports = True