The repository currently has CI via GitHub Actions but no pre-commit hooks for local development. Adding a .pre-commit-config.yaml with ruff (linting + formatting) and mypy (type checking) hooks would:
- Catch issues before they reach CI
-
- Ensure consistent code style locally
-
-
- Speed up the feedback loop for contributors
Proposed hooks:
ruff for linting with auto-fix
-
ruff-format for formatting
-
The repository currently has CI via GitHub Actions but no pre-commit hooks for local development. Adding a
.pre-commit-config.yamlwith ruff (linting + formatting) and mypy (type checking) hooks would:Proposed hooks:
rufffor linting with auto-fixruff-formatfor formattingmypyfor type checking