Pre-commit hook to convert Poetry dependancies to pip requirements.txt.
Project description
Pre-commit hooks
Poetry to Pip requirements
This pre-commit hook can be used to generate a (requirements
)[https://pip.pypa.io/en/stable/user_guide/#requirements-files] file for pip from Poetry's dependency list.
General Usage
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]
Arguments
- --dev: include dev requirements. Default= False
- --output=folder/requirements.txt: output file name. Default= requirements.txt
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for poetry_to_requirements-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4fafe1133e53de2edb0908f71428e572aa3fa012a09395790f9dd7a21e595e6 |
|
MD5 | ab10a4e33ce59747cadce564eeaff4a4 |
|
BLAKE2b-256 | 882eb18d484e493fe44864eb8e74f803717120a1759343cd8cf205f33dc9c3c4 |
Close
Hashes for poetry_to_requirements-0.0.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2c3de75def8b4ae6858a9a92447ceed6f59329d55d6d7ea0a58b58c96169181 |
|
MD5 | 3c1625f6de1bab8724ee744eaf7feec9 |
|
BLAKE2b-256 | 6a007e9f4bf6501c696f485dc96297c65f1c4e523d094c4a7f017b6227ce4d92 |