diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index d2662b8a420..3123de3cf68 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -5,7 +5,7 @@ language: python language_version: python3 pass_filenames: false - files: ^pyproject.toml$ + files: .*/pyproject.toml$ - id: poetry-lock name: poetry-lock @@ -14,6 +14,7 @@ language: python language_version: python3 pass_filenames: false + files: .*/(poetry.lock|pyproject.toml)$ - id: poetry-export name: poetry-export @@ -22,5 +23,5 @@ language: python language_version: python3 pass_filenames: false - files: ^poetry.lock$ + files: .*/poetry.lock$ args: ["-f", "requirements.txt", "-o", "requirements.txt"]