Skip to content
Snippets Groups Projects
Commit 1c84e9e1 authored by David Douard's avatar David Douard
Browse files

Add a mypy precommit hook

This requires some more stub-missing entries declared in mypy.ini to pass OK.
parent 5a7bb3a8
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,16 @@ repos:
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
......
......@@ -5,6 +5,9 @@ warn_unused_ignores = True
# 3rd party libraries without stubs (yet)
[mypy-aiohttp.*]
ignore_missing_imports = True
[mypy-aiohttp_utils.*]
ignore_missing_imports = True
......@@ -23,9 +26,15 @@ ignore_missing_imports = True
[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 @@ ignore_missing_imports = True
[mypy-requests_mock.*]
ignore_missing_imports = True
[mypy-setuptools.*]
ignore_missing_imports = True
[mypy-systemd.*]
ignore_missing_imports = True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment