Skip to content

Commit 09cd803

Browse files
committed
Export Poetry's lockfile as pip requirements.txt
This will let the pre-commit hooks ensure that Poetry's lockfile is kept up-to-date and that it is exported to a pip `requirements.txt` file. GitHub: fix #1268
1 parent 19a9e55 commit 09cd803

File tree

2 files changed

+1433
-1
lines changed

2 files changed

+1433
-1
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,19 @@ repos:
1313
- --strict
1414

1515
- repo: https://github.com/python-poetry/poetry
16-
rev: 1.5.0
16+
rev: 1.8.3
1717
hooks:
1818
- id: poetry-check
19+
args:
20+
- --lock
21+
- id: poetry-lock
22+
args:
23+
- --no-update
24+
25+
- repo: https://github.com/python-poetry/poetry-plugin-export
26+
rev: 1.8.0
27+
hooks:
28+
- id: poetry-export
1929

2030
- repo: https://github.com/myint/autoflake
2131
rev: v1.6.0

0 commit comments

Comments
 (0)