From ea98b3a79c7c132d8b0f2c9ea1ea71ddb3c15f3c Mon Sep 17 00:00:00 2001 From: David Hotham Date: Sat, 9 Jul 2022 13:53:27 +0100 Subject: [PATCH] provide the poetry-export pre-commit hook --- .pre-commit-hooks.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 0000000..b7a3244 --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,9 @@ +- id: poetry-export + name: poetry-export + description: run poetry export to sync lock file with requirements.txt + entry: poetry export + language: python + language_version: python3 + pass_filenames: false + files: ^poetry.lock$ + args: ["-f", "requirements.txt", "-o", "requirements.txt"]