repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.9.0 hooks: - id: ruff args: ["--ignore=E711,E721"] # args: ["--fix"] # Automatically apply fixes where possible - id: ruff-format - repo: local hooks: - id: run-unittest name: Run Unit Tests entry: bash -c "python -m unittest discover -s tests -p '*_test.py'" language: system always_run: true - repo: local hooks: - id: poetry-export-requirements name: Poetry Export Requirements entry: bash -c 'poetry export -f requirements.txt --output requirements.txt && git diff --quiet requirements.txt || (echo "requirements.txt was updated. Commit failed."; exit 1)' language: system types: [python]