diff --git a/.pre-commit-config.docker.yaml b/.pre-commit-config.docker.yaml index 1711b1d..d87c506 100644 --- a/.pre-commit-config.docker.yaml +++ b/.pre-commit-config.docker.yaml @@ -42,4 +42,11 @@ repos: language: system # Only run frontend client generation if frontend files have changed: files: ^local-shared-data/openapi\.json$ + pass_filenames: false + - id: export-requirements + name: Export requirements.txt + entry: sh -c 'docker compose run --rm --no-deps -T backend poetry export --without-hashes -f requirements.txt > requirements.txt' + language: system + # Trigger when poetry.lock is modified + files: poetry.lock pass_filenames: false \ No newline at end of file