Files
bracket/backend/precommit.sh
Erik Vroon f7d79eae70 Autorun alembics (#455)
Runs alembic migration automatically on fastapi startup.
Can be disabled using config setting.
2024-02-10 16:36:58 +01:00

10 lines
254 B
Bash
Executable File

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