This commit is contained in:
Andras Schmelczer 2026-05-03 10:39:31 +01:00
parent 9a009f0b4c
commit eed1567f7f
12 changed files with 463 additions and 243 deletions

14
lint.sh Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Format and lint Python sources with Ruff.
# Pass --check to fail (instead of fix) — used by CI.
set -euo pipefail
cd "$(dirname "$0")"
if [[ "${1:-}" == "--check" ]]; then
uv run --group dev ruff format --check .
uv run --group dev ruff check .
else
uv run --group dev ruff format .
uv run --group dev ruff check --fix .
fi