From 61308e99cae86948397caeb4efb15282bcc66900 Mon Sep 17 00:00:00 2001 From: Daniel Salmun Date: Thu, 1 May 2025 17:00:06 -0300 Subject: [PATCH 1/2] Add uv-pip-sync --- .pre-commit-hooks.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index c432d6a..155cf25 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -38,3 +38,13 @@ pass_filenames: false stages: [post-checkout, post-merge, post-rewrite] minimum_pre_commit_version: "2.9.2" +- id: uv-pip-sync + name: uv-pip-sync + entry: uv pip sync + description: "Automatically run 'uv pip sync' on your repository after a checkout, pull or rebase" + args: ["requirements.txt"] + language: python + always_run: true + pass_filenames: false + stages: [post-checkout, post-merge, post-rewrite] + minimum_pre_commit_version: "2.9.2" From 01b408ca0ebd12a029c62027bb2bd2781f63e2b6 Mon Sep 17 00:00:00 2001 From: Daniel Salmun Date: Thu, 1 May 2025 17:10:08 -0300 Subject: [PATCH 2/2] Add requirements to files --- .pre-commit-hooks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 155cf25..a3825c7 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -43,6 +43,7 @@ entry: uv pip sync description: "Automatically run 'uv pip sync' on your repository after a checkout, pull or rebase" args: ["requirements.txt"] + files: ^requirements.*\.txt$ language: python always_run: true pass_filenames: false