From 85e8d9a553101e83e395d56b5966a68b3094b862 Mon Sep 17 00:00:00 2001 From: ctcjab Date: Wed, 11 Dec 2024 15:13:05 -0500 Subject: [PATCH] Fix wrong target for sort-simple-yaml Configure sort-simple-yaml to apply to only yaml files. --- .pre-commit-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index b71169b..f2ee91a 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -201,7 +201,7 @@ description: sorts simple yaml files which consist only of top-level keys, preserving comments and blocks. language: python entry: sort-simple-yaml - files: '^$' + types: [yaml] - id: trailing-whitespace name: trim trailing whitespace description: trims trailing whitespace.