123456789101112131415161718 |
- #!/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 ./
- poetry run -C api ruff format ./
- poetry run -P api dotenv-linter ./api/.env.example ./web/.env.example
|