Skip to content

Commit

Permalink
Export Poetry's lockfile as pip requirements.txt
Browse files Browse the repository at this point in the history
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 mxcube#1268
  • Loading branch information
fabcor-maxiv committed Jun 28, 2024
1 parent a79b64e commit 3a2632b
Show file tree
Hide file tree
Showing 2 changed files with 1,433 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,19 @@ repos:
- --strict

- repo: https://github.com/python-poetry/poetry
rev: 1.5.0
rev: 1.8.3
hooks:
- id: poetry-check
args:
- --lock
- id: poetry-lock
args:
- --no-update

- repo: https://github.com/python-poetry/poetry-plugin-export
rev: 1.8.0
hooks:
- id: poetry-export

- repo: https://github.com/myint/autoflake
rev: v1.6.0
Expand Down
Loading

0 comments on commit 3a2632b

Please sign in to comment.