Commit 389027f2 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add a mypy pre-commit hook

parent 61bc5866
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -78,3 +78,11 @@ repos:
    - flake8-return
    - flake8-sfs
    - flake8-tabs

- repo: https://github.com/pre-commit/mirrors-mypy
  rev: v0.910
  hooks:
  - id: mypy
    args: [--config=setup.cfg]
    additional_dependencies: [anyio, trio-typing]
    exclude: setup\.py
+6 −0
Original line number Diff line number Diff line
@@ -87,6 +87,12 @@ always-on = True
[isort]
force_single_line = true

[mypy]
strict = true
warn_unreachable = true
implicit_reexport = true
follow_imports = skip

[flake8]
max-line-length = 92
max-doc-length = 92