Files
bracket/backend/precommit.sh
Erik Vroon c8cab54286 Add pyrefly type checking (#1434)
Prefly is much faster than mypy and a bit stricter
Mypy will also still be checked on CI for now
2025-11-14 10:47:23 +00:00

11 lines
323 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 dmypy run -- --follow-imports=normal --junit-xml= .
ENVIRONMENT=CI uv run pytest --cov --cov-report=xml . -vvv
uv run pylint cli.py bracket tests