Releases: arrrrrmin/poetry-requirements
Releases · arrrrrmin/poetry-requirements
0.1.5
0.1.4: Support for poetry 1.2.0
What's Changed
- Support poetry 1.2.0 by @arrrrrmin in #2
Add the following to your .pre-commit-config.yaml
if you run poetry < 1.2.0
:
- repo: https://github.com/arrrrrmin/poetry-requirements
rev: 0.1.4
hooks:
- id: poetry-requirements
always_run: true
args: [-o, requirements.txt, --dev, --without-hashes]
In case you run poetry >= 1.2.0
(poetry support for 1.2.*
is only available with rev >= 0.1.4
):
- repo: https://github.com/arrrrrmin/poetry-requirements
rev: 0.1.4
hooks:
- id: poetry-requirements
always_run: true
args: [-o, requirements.txt, --with, dev, --without-hashes]
Full Changelog: 0.1.3...0.1.4
poetry-requirements 0.1.3
A pre-commit hook to automatically generate the projects
requirement.txt file from poetry.
Add the following to your .pre-commit-config.yaml
:
- repo: https://github.com/arrrrrmin/poetry-requirements
rev: 0.1.3
hooks:
- id: poetry-requirements
args: [-o, requirements.txt, --dev, --without-hashes]
0.1.2 Initial release
.pre-commit-hooks.yaml
- id: poetry-requirements
name: Check requirements.txt
entry: poetry_requirements
language: python
pass_filenames: false
always_run: true
description: This hook checks if requirements.txt is in sync with for poetry environments.
args: [-o, requirements.txt, --dev, --without-hashes]
.pre-commit-config.yaml
- repo: https://github.com/arrrrrmin/poetry-requirements
rev: 0.1.1
hooks:
- id: poetry-requirements
args: [--without-hashes]
If you don't want to export with --dev
just leave it away. If args
is empty the hook will still default to poetry export
defaults. Do not use poetry exports --with-credentials
-option as hook is intended for repositories that rely on requirements.txt
to be commit.