Skip to content

Releases: arrrrrmin/poetry-requirements

0.1.5

07 Jun 11:09
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.1.4...0.1.5

0.1.4: Support for poetry 1.2.0

05 Sep 17:42
Compare
Choose a tag to compare

What's Changed

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

22 Jul 10:05
Compare
Choose a tag to compare

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

18 Jul 17:32
Compare
Choose a tag to compare

.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.