Skip to content

Add mypy type checking to pre-commit hooks#57

Merged
shenxianpeng merged 1 commit into
mainfrom
add-mypy-precommit
Apr 28, 2026
Merged

Add mypy type checking to pre-commit hooks#57
shenxianpeng merged 1 commit into
mainfrom
add-mypy-precommit

Conversation

@shenxianpeng
Copy link
Copy Markdown
Member

@shenxianpeng shenxianpeng commented Apr 28, 2026

Add 'hatch run types:check' as a pre-commit hook to catch type errors before they reach CI. Uses pass_filenames: false since mypy needs to check the entire project (not just staged files).

This matches the existing 'hatch run types:check' command documented in CONTRIBUTING.md.

Related Issue

Fixes #

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup
  • CI / build / dependency update
  • Other (describe below)

Checklist

  • New tests added for new behavior (if applicable)
  • Documentation updated (if applicable)
  • Release notes docs/about/release-notes.md updated (if applicable)

Add 'hatch run types:check' as a pre-commit hook to catch type
errors before they reach CI. Uses pass_filenames: false since
mypy needs to check the entire project (not just staged files).

This matches the existing 'hatch run types:check' command
documented in CONTRIBUTING.md.
@shenxianpeng shenxianpeng merged commit ca20a77 into main Apr 28, 2026
23 checks passed
@shenxianpeng shenxianpeng deleted the add-mypy-precommit branch April 28, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant