We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7b8701 commit 8338fb1Copy full SHA for 8338fb1
2 files changed
.pre-commit-config.yaml
@@ -19,3 +19,12 @@ repos:
19
hooks:
20
- id: blacken-docs
21
additional_dependencies: [black==20.8b1]
22
+# Use a local hook to run because the official hook runs mypy in a venv
23
+# that doesn't have dependencies or their type annotations installed.
24
+- repo: local
25
+ hooks:
26
+ - id: mypy
27
+ name: mypy
28
+ entry: mypy
29
+ language: system
30
+ types: [python]
tox.ini
@@ -15,9 +15,6 @@ commands = pytest {posargs}
15
extras = lint
16
commands =
17
pre-commit run --all-files
18
- ; Run mypy outside pre-commit because pre-commit runs mypy in a venv
- ; that doesn't have dependencies or their type annotations installed.
- mypy .
; Below tasks are for development only (not run in CI)
0 commit comments