Skip to content

Commit

Permalink
docs(pre-commit): fix pre-commit YAML style (#8146)
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaelJarniac committed Jul 7, 2023
1 parent d31dfa8 commit 8437d54
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/pre-commit-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ console:

```yaml
hooks:
- id: poetry-export
- id: poetry-export
args: ["-f", "requirements.txt"]
verbose: true
```
Expand All @@ -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"]
```

Expand All @@ -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"]
```

Expand Down

0 comments on commit 8437d54

Please sign in to comment.