Files
bracket/backend/precommit.sh
Erik Vroon a548ff6d61 Use hey-api (#1479)
Store the `openapi.json` of the backend in the repo and import it using
https://heyapi.dev/ to generate TypeScript types for the backend API
query params, responses, bodies.
2025-12-20 19:32:33 +01:00

12 lines
356 B
Bash
Executable File

#!/bin/bash
set -evo pipefail
uv run ruff format .
uv run ruff check --fix .
! uv run vulture | grep "unused function\|unused class\|unused method"
uv run pyrefly check
uv run ./cli.py generate-openapi
uv run dmypy run -- --follow-imports=normal --junit-xml= .
ENVIRONMENT=CI uv run pytest --cov --cov-report=xml . -vvv
uv run pylint cli.py bracket tests