Skip to content

Commit

Permalink
Adding precommit hook for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
mtauraso committed Jan 10, 2025
1 parent 440ff4d commit 12de940
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ repos:
- id: ruff-format
name: Format code using ruff
types_or: [ python, pyi, jupyter ]

# Run mypy type checking across all source files
- repo: local
hooks:
- id: mypy-check
name: Type check
description: Run mypy static type checking.
entry: mypy .
language: system
pass_filenames: false
always_run: true

# Make sure Sphinx can build the documentation while explicitly omitting
# notebooks from the docs, so users don't have to wait through the execution
# of each notebook or each commit. By default, these will be checked in the
Expand Down

0 comments on commit 12de940

Please sign in to comment.