Debian Codegraph @

scripts/format

raw
1 #!/usr/bin/env bash
2
3 set -e
4
5 cd "$(dirname "$0")/.."
6
7 echo "==> Running ruff"
8 uv run ruff format
9 uv run ruff check --fix .
10 # run formatting again to fix any inconsistencies when imports are stripped
11 uv run ruff format
12
13 echo "==> Formatting docs"
14 uv run python scripts/utils/ruffen-docs.py README.md $(find . -type f -name api.md)