From 8437d541b15ee7a8de48e10f547c8e4e8630a054 Mon Sep 17 00:00:00 2001 From: Micael Jarniac Date: Fri, 7 Jul 2023 19:56:11 -0300 Subject: [PATCH] docs(pre-commit): fix pre-commit YAML style (#8146) --- docs/pre-commit-hooks.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/pre-commit-hooks.md b/docs/pre-commit-hooks.md index e526a739079..baff210811c 100644 --- a/docs/pre-commit-hooks.md +++ b/docs/pre-commit-hooks.md @@ -71,7 +71,7 @@ console: ```yaml hooks: - - id: poetry-export +- id: poetry-export args: ["-f", "requirements.txt"] verbose: true ``` @@ -80,7 +80,7 @@ Also, `--dev` can be added to `args` to write dev-dependencies to `requirements. ```yaml hooks: - - id: poetry-export +- id: poetry-export args: ["--dev", "-f", "requirements.txt", "-o", "requirements.txt"] ``` @@ -93,12 +93,12 @@ A full `.pre-commit-config.yaml` example: ```yaml repos: - - repo: https://github.com/python-poetry/poetry +- repo: https://github.com/python-poetry/poetry rev: '' # add version here hooks: - - id: poetry-check - - id: poetry-lock - - id: poetry-export + - id: poetry-check + - id: poetry-lock + - id: poetry-export args: ["-f", "requirements.txt", "-o", "requirements.txt"] ```