Skip to content

Commit 8437d54

Browse files
docs(pre-commit): fix pre-commit YAML style (#8146)
1 parent d31dfa8 commit 8437d54

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/pre-commit-hooks.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ console:
7171

7272
```yaml
7373
hooks:
74-
- id: poetry-export
74+
- id: poetry-export
7575
args: ["-f", "requirements.txt"]
7676
verbose: true
7777
```
@@ -80,7 +80,7 @@ Also, `--dev` can be added to `args` to write dev-dependencies to `requirements.
8080

8181
```yaml
8282
hooks:
83-
- id: poetry-export
83+
- id: poetry-export
8484
args: ["--dev", "-f", "requirements.txt", "-o", "requirements.txt"]
8585
```
8686

@@ -93,12 +93,12 @@ A full `.pre-commit-config.yaml` example:
9393

9494
```yaml
9595
repos:
96-
- repo: https://github.com/python-poetry/poetry
96+
- repo: https://github.com/python-poetry/poetry
9797
rev: '' # add version here
9898
hooks:
99-
- id: poetry-check
100-
- id: poetry-lock
101-
- id: poetry-export
99+
- id: poetry-check
100+
- id: poetry-lock
101+
- id: poetry-export
102102
args: ["-f", "requirements.txt", "-o", "requirements.txt"]
103103
```
104104

0 commit comments

Comments
 (0)