# Enable mypy at pre-commit stage (keep pre-push enforcement)

> This catches type errors earlier at commit time while retaining the existing push-time gate.

- Skill: `tools-only/enable-mypy-at-pre-commit-stage-keep-pre-push-enforcement` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add tools-only/enable-mypy-at-pre-commit-stage-keep-pre-push-enforcement`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tools-only/enable-mypy-at-pre-commit-stage-keep-pre-push-enforcement/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tools-only (https://skillmd.com/u/tools-only)
- Updated: 2026-09-29
- Page: https://skillmd.com/skills/tools-only/enable-mypy-at-pre-commit-stage-keep-pre-push-enforcement

---


# Enable mypy at pre-commit stage (keep pre-push enforcement)

## Summary

Updated `.pre-commit-config.yaml` so the `mypy` hook runs during both:

- `pre-commit`
- `pre-push`

This catches type errors earlier at commit time while retaining the existing push-time gate.

## Verification

- `uv run pre-commit run mypy --files src/tunacode/ui/widgets/editor.py` ✅

