Type-check Python sources using mypy.
- id: mypy
args: ["--strict"]Override args if you want non-strict mode. Prefers uv run mypy when uv is
installed; falls back to python -m mypy.
By default, mypy receives filenames from pre-commit/prek and checks each target
separately so unrelated script files with the same basename do not collide. For
whole-project checking, configure one explicit target and pass_filenames: false.
Category 2 (toolchain wrapper). Source: hooks/mypy/run.sh.