python-poetry / python-poetry/poetry-plugin-export

Warning on pre-commit hook

Open
#249 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
335
Forks
57
Avg merge
1h 23m
Merged PRs (30d)
3

Description

I am using the following pre-commit hook:

  - repo: https://github.com/python-poetry/poetry
    rev: '1.6.0'  # add version here
    hooks:
      - id: poetry-check
        args: [--no-cache]
        language_version: python3.9
      - id: poetry-lock
        args: [--no-cache]
        language_version: python3.9

  - repo: https://github.com/python-poetry/poetry-plugin-export
    rev: '1.6.0'  # add version here
    hooks:
      - id: poetry-export
        args: ["--no-cache", "-f", "requirements.txt", "-o", "requirements.txt"]
        language_version: python3.9

and receiving the following warning:
image

It seems that it is not using the plugin and instead use the deprecated poetry export command

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the pre-commit hook definition for poetry-export and the command it invokes, using the configuration shown in the issue. Compare that path with the deprecated poetry export warning; done means the hook uses the plugin as intended or clearly documents why the warning remains.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.