Skip to content

Add pre-commit hooks for ruff (lint before commit, not just in CI) - #2

Merged
Acedpol merged 1 commit into
mainfrom
feature/pre-commit-hooks
Aug 16, 2026
Merged

Add pre-commit hooks for ruff (lint before commit, not just in CI)#2
Acedpol merged 1 commit into
mainfrom
feature/pre-commit-hooks

Conversation

@Acedpol

@Acedpol Acedpol commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Closes #1

Qué cambia

  • .pre-commit-config.yaml: hooks de ruff check --fix y ruff format en cada commit
  • requirements-dev.txt: añade pre-commit
  • README: instrucciones de instalación (pre-commit install)
  • Reformateo de 16 archivos por la primera pasada de ruff format (solo estilo, sin cambios de comportamiento)

Cómo lo probé

  • pre-commit run --all-files → limpio
  • pytest -v --cov=app --cov-fail-under=90 → 28/28 pasando, cobertura 95.86%
  • ruff check . → limpio

Test plan

  • Hooks corren en limpio sobre el código actual
  • Suite completa sigue en verde tras el reformateo
  • CI en verde en este PR

.pre-commit-config.yaml runs ruff check --fix and ruff format on
every commit, catching lint/format issues locally instead of only
discovering them when CI runs. First run reformatted 16 files to
ruff-format's style (whitespace/wrapping only, no behavior change —
full suite still 28/28 passing).

Closes #1
@Acedpol
Acedpol merged commit 2312b39 into main Aug 16, 2026
1 check passed
@Acedpol
Acedpol deleted the feature/pre-commit-hooks branch August 16, 2026 16:21
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.

Add pre-commit hooks for ruff (lint before commit, not just in CI)

1 participant