My personnal poetry-related pre-commit hooks
Prevent desync between poetry and requirements.txt.
DEPRECATION NOTICE: See python-poetry/poetry#2457 for better implementations.
Usage:
- repo: https://github.com/Diaoul/pre-commit-hooks-poetry
rev: 0.5.0
hooks:
- id: poetry-exportAll arguments to the poetry export command are valid:
- repo: https://github.com/Diaoul/pre-commit-hooks-poetry
rev: 0.5.0
hooks:
- id: poetry-export
args: ["--without-hashes"]For a another file:
- repo: https://github.com/Diaoul/pre-commit-hooks-poetry
rev: 0.5.0
hooks:
- id: poetry-export
args: ["--dev"]
files: ^dev-requirements\.txt$