Lint
This commit is contained in:
parent
9a009f0b4c
commit
eed1567f7f
12 changed files with 463 additions and 243 deletions
14
lint.sh
Executable file
14
lint.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue