davidcastagnetoa/skills

black_ruff_mypy

Formateador, linter ultra-rápido y type checking estático para garantizar calidad del código Python

First seen Mar 2, 2026

Installation

$ npx skills add davidcastagnetoa/skills --skill black_ruff_mypy

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from davidcastagnetoa/skills · top by installs.

npx skills add davidcastagnetoa/skills

Browse all from davidcastagnetoa/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,914 B
  • docs SUMMARY.md 125 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 16 installs

SKILL.md

blackruffmypy

Tres herramientas complementarias que se ejecutan juntas en cada commit y en CI para mantener la calidad del código Python sin debate entre developers.

When to use

Configurar en pre-commit hooks desde el primer commit. Ejecutar también en CI como gate obligatorio antes de merge.

Instructions

  1. Instalar: pip install black ruff mypy
  2. Configurar en pyproject.toml:

```toml [tool.black] line-length = 100 target-version = ["py311"]

[tool.ruff] line-length = 100 select = ["E", "F", "I", "N", "W", "UP", "S", "B"] ignore = ["S101"] # allow assert in tests

[tool.mypy] pythonversion = "3.11" strict = true ignoremissing_imports = true plugins = ["pydantic.mypy"] ```

  1. Añadir a .pre-commit-config.yaml:

``yaml repos: - repo: https://github.com/psf/black rev: 23.12.0 hooks: [{id: black}] - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.1.9 hooks: [{id: ruff, args: [--fix]}] - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.8.0 hooks: [{id: mypy, additional_dependencies: [pydantic, types-redis]}] ``

  1. Instalar hooks: pre-commit install.
  2. En CI: ruff check . && black --check . && mypy backend/.

Notes

  • Black reformatea automáticamente — los developers aceptan el formato sin discutir estilo.
  • Ruff en modo --fix corrige automáticamente los errores que puede (imports desordenados, unused imports).
  • mypy strict=true requiere type annotations en todo el código — es estricto pero previene bugs sutiles en async code.
  • Ruff reemplaza Flake8, isort, pydocstyle y más — es 100x más rápido que las alternativas.