From 0c638a9b1e0b4dbdf580b5f62b9edec0297a41ae Mon Sep 17 00:00:00 2001 From: bentocin Date: Tue, 18 Jul 2023 00:31:41 +0200 Subject: [PATCH] Escape dots for file extension in pre-commit files regex Signed-off-by: bentocin --- .pre-commit-hooks.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index f2e3244f76d..be3bca9dbcc 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -4,7 +4,7 @@ entry: poetry check language: python pass_filenames: false - files: ^(.*/)?pyproject.toml$ + files: ^(.*/)?pyproject\.toml$ - id: poetry-lock name: poetry-lock @@ -12,7 +12,7 @@ entry: poetry lock language: python pass_filenames: false - files: ^(.*/)?(poetry.lock|pyproject.toml)$ + files: ^(.*/)?(poetry\.lock|pyproject\.toml)$ - id: poetry-export name: poetry-export @@ -20,5 +20,5 @@ entry: poetry export language: python pass_filenames: false - files: ^(.*/)?poetry.lock$ + files: ^(.*/)?poetry\.lock$ args: ["-f", "requirements.txt", "-o", "requirements.txt"]