From 0a9d2bb7a735cde7e72ab753b56845a2641827df Mon Sep 17 00:00:00 2001 From: Joachim Jablon Date: Mon, 1 Apr 2024 14:20:25 +0200 Subject: [PATCH 1/2] Update .pre-commit-hooks.yaml --- .pre-commit-hooks.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 1620b09..12ac0ec 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,6 +1,12 @@ - id: sync-repos name: Sync repos with Poetry description: Automatically sync pre-commit repos with package versions in poetry.lock - entry: swp + entry: sync-repos language: python - files: poetry.lock + files: (poetry.lock|.pre-commit-config.ya?ml) +- id: sync-repos + name: sync-hooks-additional-dependencies + description: Automatically sync pre-commit hook additional dependencies with poetry groups + entry: sync-hooks-additional-dependencies + language: python + files: (poetry.lock|pyproject.toml|.pre-commit-config.ya?ml) From cf44e5ed69060153625f03d57bd8fd1d4b852b4b Mon Sep 17 00:00:00 2001 From: Joachim Jablon Date: Mon, 1 Apr 2024 14:21:57 +0200 Subject: [PATCH 2/2] Update .pre-commit-hooks.yaml --- .pre-commit-hooks.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 12ac0ec..2f05513 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -4,8 +4,8 @@ entry: sync-repos language: python files: (poetry.lock|.pre-commit-config.ya?ml) -- id: sync-repos - name: sync-hooks-additional-dependencies +- id: sync-hooks-additional-dependencies + name: Sync hooks additional dependencies with Poetry description: Automatically sync pre-commit hook additional dependencies with poetry groups entry: sync-hooks-additional-dependencies language: python