Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 588 Bytes

File metadata and controls

21 lines (14 loc) · 588 Bytes

mypy

Type-check Python sources using mypy.

Configuration

- 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.

Implementation

Category 2 (toolchain wrapper). Source: hooks/mypy/run.sh.