Skip to content
Back to skills

2495 2026 02 22 Enable Mypy Pre Commit Hook Fcaca880

ASecurity

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

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
development

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2495-2026-02-22-enable-mypy-pre-commit-hook_fcaca880 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2495 2026 02 22 Enable Mypy Pre Commit Hook Fcaca880?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2495 2026 02 22 Enable Mypy Pre Commit Hook Fcaca880
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2495-2026-02-22-enable-mypy-pre-commit-hook-fcaca8/badge)](https://www.skillsdirectory.com/skills/tools-only-2495-2026-02-22-enable-mypy-pre-commit-hook-fcaca8)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
title: Enable mypy at pre-commit stage (keep pre-push enforcement)
type: delta
link: enable-mypy-pre-commit-hook
path: .pre-commit-config.yaml
depth: 0
seams: [S]
ontological_relations:
  - affects: [[tooling]]
  - affects: [[typing-contracts]]
  - affects: [[developer-workflow]]
tags:
  - mypy
  - pre-commit
  - quality-gate
created_at: 2026-02-22T15:17:04-06:00
updated_at: 2026-02-22T15:17:04-06:00
uuid: 6a5c9232-30f7-4aa9-bf94-ecb0197d6263
---

# 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` ✅

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.