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"]