Skip to content

Commit

Permalink
Escape dots for file extension in pre-commit files regex
Browse files Browse the repository at this point in the history
Signed-off-by: bentocin <[email protected]>
  • Loading branch information
bentocin committed Jul 17, 2023
1 parent 34dc876 commit 1d59e32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
entry: poetry check
language: python
pass_filenames: false
files: ^(.*/)?pyproject.toml$
files: ^(.*/)?pyproject\.toml$

- id: poetry-lock
name: poetry-lock
description: run poetry lock to update lock file
entry: poetry lock
language: python
pass_filenames: false
files: ^(.*/)?(poetry.lock|pyproject.toml)$
files: ^(.*/)?(poetry\.lock|pyproject\.toml)$

- id: poetry-export
name: poetry-export
description: run poetry export to sync lock file with requirements.txt
entry: poetry export
language: python
pass_filenames: false
files: ^(.*/)?poetry.lock$
files: ^(.*/)?poetry\.lock$
args: ["-f", "requirements.txt", "-o", "requirements.txt"]

0 comments on commit 1d59e32

Please sign in to comment.