1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
- id: pdm-lock-check
name: pdm-lock-check
description: run pdm lock --check to validate config
entry: pdm lock --check
language: python
language_version: python3
pass_filenames: false
files: ^pyproject.toml$
- id: pdm-export
name: pdm-export-lock
description: export locked packages to requirements.txt or setup.py
entry: pdm export
language: python
language_version: python3
pass_filenames: false
files: ^pdm.lock$
- id: pdm-sync
name: pdm-sync
description: sync current working set with pdm.lock
entry: pdm sync
language: python
language_version: python3
pass_filenames: false
stages:
- post-checkout
- post-merge
- post-rewrite
always_run: true
|