Skip to content

Commit

Permalink
Added requirements export to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
andersonresende committed Dec 30, 2024
1 parent 8efe39b commit 2dfe04e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2dfe04e

Please sign in to comment.