diff --git a/CLAUDE.md b/CLAUDE.md index d38dc47..41c96ce 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -15,8 +15,10 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co | CSS (Tailwind) | `make css` | | Django shell | `make shell` | | Create superuser | `make createsuperuser` | -| Format Python | `uv run ruff format` | -| Lint Python | `uv run ruff check` | +| Format Python | `make format` (or `uv run ruff format`) | +| Lint Python | `make lint` (or `uv run ruff check`) | +| Auto-fix lint | `make lint-fix` (`ruff check --fix`) | +| Lint + format check + tests | `make check` (CI-style aggregate) | | Sync uv.lock | `uv sync` (after editing pyproject.toml) | ## Architecture diff --git a/Makefile b/Makefile index cea362f..ac0ade1 100644 --- a/Makefile +++ b/Makefile @@ -67,6 +67,20 @@ uv.lock: pyproject.toml test: uv.lock uv run --with pytest-django pytest +lint: + uv run ruff check + +lint-fix: + uv run ruff check --fix + +format: + uv run ruff format + +format-check: + uv run ruff format --check + +check: lint format-check test + date: uv run python -c 'import datetime; from zoneinfo import ZoneInfo; print(datetime.datetime.isoformat(datetime.datetime.now(ZoneInfo("Europe/Prague")), timespec="minutes", sep=" "))'