From 2dfe04e5d312413b9dc2e6f498837bcbcaefb764 Mon Sep 17 00:00:00 2001 From: Anderson Resende Date: Mon, 30 Dec 2024 10:11:33 -0300 Subject: [PATCH] Added requirements export to docker --- .pre-commit-config.docker.yaml | 7 +++++++ 1 file changed, 7 insertions(+) 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