Commit b1fcfc02 by Martin Miglio Committed by GitHub

pre-commit matches pyproject.toml in subdirs (#7242)

parent 99f106c5
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
language: python language: python
language_version: python3 language_version: python3
pass_filenames: false pass_filenames: false
files: ^pyproject.toml$ files: ^(.*/)?pyproject.toml$
- id: poetry-lock - id: poetry-lock
name: poetry-lock name: poetry-lock
......
...@@ -34,6 +34,9 @@ to make sure the poetry configuration does not get committed in a broken state. ...@@ -34,6 +34,9 @@ to make sure the poetry configuration does not get committed in a broken state.
The hook takes the same arguments as the poetry command. The hook takes the same arguments as the poetry command.
For more information see the [check command]({{< relref "cli#check" >}}). For more information see the [check command]({{< relref "cli#check" >}}).
{{% note %}}
If the `pyproject.toml` file is not in the root directory, you can specify `args: ["-C", "./subdirectory"]`.
{{% /note %}}
## poetry-lock ## poetry-lock
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment