| # run dotenv-linter linter | # run dotenv-linter linter | ||||
| uv run --project api --dev dotenv-linter ./api/.env.example ./web/.env.example | uv run --project api --dev dotenv-linter ./api/.env.example ./web/.env.example | ||||
| # run ty check | |||||
| dev/ty-check | |||||
| # run mypy check | # run mypy check | ||||
| dev/mypy-check | dev/mypy-check |
| echo "Please run 'dev/reformat' to fix the fixable linting errors." | echo "Please run 'dev/reformat' to fix the fixable linting errors." | ||||
| exit 1 | exit 1 | ||||
| fi | fi | ||||
| # run ty checks | |||||
| uv run --directory api --dev ty check || status=$? | |||||
| status=${status:-0} | |||||
| if [ $status -ne 0 ]; then | |||||
| echo "ty type checker on api module error, exit code: $status" | |||||
| echo "Please run 'dev/ty-check' to check the type errors." | |||||
| exit 1 | |||||
| fi | |||||
| fi | fi | ||||
| if $web_modified; then | if $web_modified; then |