Automatically validates Python type safety by running Pyrefly or Mypy whenever files are modified.
This internal hook ensures Python code integrity by automatically triggering type-checking tools after every file edit. By integrating directly with existing project configurations in pyproject.toml, it utilizes either Pyrefly or Mypy to catch type errors immediately, maintaining high code quality and preventing runtime failures without requiring manual developer intervention. It acts as a passive background safeguard, ensuring that AI-generated or human-edited code adheres to defined type standards.
Key Features
01Seamless integration with pyproject.toml
02Passive background validation
03Support for uv-managed environments
04Automatic post-edit type checking
051 GitHub stars
06Support for Pyrefly and Mypy
Use Cases
01Automating static analysis during the development loop
02Ensuring type safety in large Python codebases
03Maintaining type consistency across collaborative projects