CI: Enable pre-commit validation via MyPy 48/70548/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 26 Aug 2022 20:19:43 +0000 (13:19 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 26 Aug 2022 20:19:43 +0000 (13:19 -0700)
Start enforcing proper annotation defintions by way of MyPy validation

Issue: RELENG-4388
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Change-Id: I2776f4f578856da4478637a33711a47a4ba2ef1a

.pre-commit-config.yaml

index 191a5e9..5971360 100644 (file)
@@ -33,3 +33,13 @@ repos:
     hooks:
       - id: flake8
         args: ["--max-line-length=120"]
+
+  - repo: https://github.com/pre-commit/mirrors-mypy
+    rev: v0.971
+    hooks:
+      - id: mypy
+        additional_dependencies:
+          - types-tabulate
+          - types-requests
+          - types-six
+          - types-PyYAML