Imported from CheikhBambaDeme/gymlog (
.claude/skills/check/SKILL.md). Install upstream withnpx skills add CheikhBambaDeme/gymlog --skill check. Copyright stays with the author.
Current state
Ruff:
!uv run ruff check . 2>&1 | tail -20
Formatting:
!uv run ruff format --check . 2>&1 | tail -5
Migration drift:
!uv run python manage.py makemigrations --check --dry-run 2>&1 | tail -20
Django checks:
!uv run python manage.py check 2>&1 | tail -20
Tests:
!uv run pytest -q $ARGUMENTS 2>&1 | tail -30
Instructions
Read the outputs above and fix everything that is failing. Work in this order, because each one can mask the next:
- Ruff — apply
uv run ruff check --fix .for the mechanical ones, then fix the rest by hand. Do not silence a rule with# noqaunless you explain why in the same line. - Formatting —
uv run ruff format .. - Migration drift — if a model changed without a migration, generate one with
a descriptive
--name, never an auto-generated timestamp name. - Django checks — resolve genuinely, do not add to
SILENCED_SYSTEM_CHECKS. - Tests — fix the code, not the assertion, unless the assertion is provably wrong. If a test is wrong, say so explicitly and explain why before changing it.
Then re-run the failing command to confirm it passes. Do not report success on a command you have not re-run.
If any template changed in this task, also run just css and confirm
static/css/app.css is updated — the production image has no Node, so an
uncompiled class ships as an unstyled screen.
If everything above already passes, say so in one line and stop — do not invent work.