From 55d9f151303eb895b446cd131205d1a6f9a7ce91 Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Thu, 30 Jan 2025 23:48:25 +0000 Subject: [PATCH 1/2] WIP: Add 'uv-run' hook --- .pre-commit-hooks.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 3f5e196..7f3bc0d 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -8,6 +8,15 @@ pass_filenames: false additional_dependencies: [] minimum_pre_commit_version: "2.9.2" +- id: uv-run + name: uv-run + description: "Execute your scripts and tools with 'uv run'" + entry: uv run + language: python + args: [] + pass_filenames: false + additional_dependencies: [] + minimum_pre_commit_version: "2.9.2" - id: uv-lock name: uv-lock description: "Automatically run 'uv lock' on your project dependencies" From 352d87184058227ef4ec4245ef0b75043d2ba86f Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Sun, 9 Feb 2025 16:19:31 +0000 Subject: [PATCH 2/2] Add -no-active parameter --- .pre-commit-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 7f3bc0d..f44165c 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -11,7 +11,7 @@ - id: uv-run name: uv-run description: "Execute your scripts and tools with 'uv run'" - entry: uv run + entry: uv run --no-active language: python args: [] pass_filenames: false