Add new lint and format checks

This commit is contained in:
2026-06-06 07:10:54 +02:00
parent f090643026
commit 09db54e940
2 changed files with 18 additions and 2 deletions
+4 -2
View File
@@ -15,8 +15,10 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
| CSS (Tailwind) | `make css` | | CSS (Tailwind) | `make css` |
| Django shell | `make shell` | | Django shell | `make shell` |
| Create superuser | `make createsuperuser` | | Create superuser | `make createsuperuser` |
| Format Python | `uv run ruff format` | | Format Python | `make format` (or `uv run ruff format`) |
| Lint Python | `uv run ruff check` | | 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) | | Sync uv.lock | `uv sync` (after editing pyproject.toml) |
## Architecture ## Architecture
+14
View File
@@ -67,6 +67,20 @@ uv.lock: pyproject.toml
test: uv.lock test: uv.lock
uv run --with pytest-django pytest 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: date:
uv run python -c 'import datetime; from zoneinfo import ZoneInfo; print(datetime.datetime.isoformat(datetime.datetime.now(ZoneInfo("Europe/Prague")), timespec="minutes", sep=" "))' uv run python -c 'import datetime; from zoneinfo import ZoneInfo; print(datetime.datetime.isoformat(datetime.datetime.now(ZoneInfo("Europe/Prague")), timespec="minutes", sep=" "))'