12345678910111213141516171819 |
- #!/bin/bash
- set -x
- if ! command -v ruff &> /dev/null || ! command -v dotenv-linter &> /dev/null; then
- echo "Installing linting tools (Ruff, dotenv-linter ...) ..."
- poetry install -C api --only lint
- fi
- poetry run -C api ruff check --fix ./api
- poetry run -C api ruff format ./api
- poetry run -C api dotenv-linter ./api/.env.example ./web/.env.example
|