Pre-commit hook to convert Poetry dependencies to pip requirements file
MIT License
This pre-commit hook can be used to generate a requirements file for pip from Poetry's dependency list.
In each of your repos, add a file called .pre-commit-config.yaml with the following contents:
repos:
- repo: https://github.com/christopherpickering/pre-commit-hooks
rev: <VERSION> # Get the latest from: https://github.com/christopherpickering/pre-commit-hooks/releases
hooks:
- id: poetry-to-requirements
args: [--dev,--output=subfolder/requirements.txt]