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.

tools-only Updated 7 repo stars

File contents

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 ✅

tools-only/X-Skills/tree/main/development/2495-2026-02-22-enable-mypy-pre-commit-hook_fcaca880 commit 562021dbe3

Frequently asked questions

npx skillmds@latest add tools-only/enable-mypy-at-pre-commit-stage-keep-pre-push-enforcement