Commit 8437d541 by Micael Jarniac Committed by GitHub

docs(pre-commit): fix pre-commit YAML style (#8146)

parent d31dfa83
...@@ -71,7 +71,7 @@ console: ...@@ -71,7 +71,7 @@ console:
```yaml ```yaml
hooks: hooks:
- id: poetry-export - id: poetry-export
args: ["-f", "requirements.txt"] args: ["-f", "requirements.txt"]
verbose: true verbose: true
``` ```
...@@ -80,7 +80,7 @@ Also, `--dev` can be added to `args` to write dev-dependencies to `requirements. ...@@ -80,7 +80,7 @@ Also, `--dev` can be added to `args` to write dev-dependencies to `requirements.
```yaml ```yaml
hooks: hooks:
- id: poetry-export - id: poetry-export
args: ["--dev", "-f", "requirements.txt", "-o", "requirements.txt"] args: ["--dev", "-f", "requirements.txt", "-o", "requirements.txt"]
``` ```
...@@ -93,12 +93,12 @@ A full `.pre-commit-config.yaml` example: ...@@ -93,12 +93,12 @@ A full `.pre-commit-config.yaml` example:
```yaml ```yaml
repos: repos:
- repo: https://github.com/python-poetry/poetry - repo: https://github.com/python-poetry/poetry
rev: '' # add version here rev: '' # add version here
hooks: hooks:
- id: poetry-check - id: poetry-check
- id: poetry-lock - id: poetry-lock
- id: poetry-export - id: poetry-export
args: ["-f", "requirements.txt", "-o", "requirements.txt"] args: ["-f", "requirements.txt", "-o", "requirements.txt"]
``` ```
......
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