From 715f27f2a7c45701c9c6d626f1f470a3e2552884 Mon Sep 17 00:00:00 2001 From: Samuel Monson Date: Thu, 28 Aug 2025 10:34:51 -0400 Subject: [PATCH] Automaticly resolve pylock if check fails Signed-off-by: Samuel Monson --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 53d5980c..79b916ca 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,6 +11,7 @@ repos: hooks: - id: pdm-lock-check name: check lock file matches pyproject + entry: sh -c "pdm lock -v --check || pdm lock --update-reuse" - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.11.7 hooks: