Skip to content

Commit 85e8d9a

Browse files
authored
Fix wrong target for sort-simple-yaml
Configure sort-simple-yaml to apply to only yaml files.
1 parent e437b7e commit 85e8d9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
description: sorts simple yaml files which consist only of top-level keys, preserving comments and blocks.
202202
language: python
203203
entry: sort-simple-yaml
204-
files: '^$'
204+
types: [yaml]
205205
- id: trailing-whitespace
206206
name: trim trailing whitespace
207207
description: trims trailing whitespace.

0 commit comments

Comments
 (0)