Skip to content

Commit

Permalink
Add mypy type checking for pre-commit (#543)
Browse files Browse the repository at this point in the history
* introduce mypy to pre-commit

* add __init__
  • Loading branch information
JerrySentry authored May 6, 2024
1 parent 1e1cc99 commit ab808c1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ repos:
pass_filenames: false
require_serial: true
language: system
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.10.0'
hooks:
- id: mypy
verbose: true
entry: bash -c 'mypy "$@" || true' --
7 changes: 7 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Global options:

[mypy]
disallow_untyped_defs = True
ignore_missing_imports = True
disable_error_code = attr-defined,import-untyped,name-defined
follow_imports = silent
Empty file added plan/__init__.py
Empty file.

0 comments on commit ab808c1

Please sign in to comment.