From 22ffbcb21dbfe62108d51339538b73f812eeb39c Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 7 May 2022 07:05:32 +0200 Subject: [PATCH] pre-commit: Try to autofix yaml BEFORE checking it (#269) * pre-commit: Remove duplicate hook and reorder --- .pre-commit-config.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9f864f19..d9a23f34 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,6 +9,8 @@ repos: - id: check-builtin-literals - id: check-case-conflict - id: check-docstring-first + - id: check-json + exclude: tsconfig.json - id: check-toml - id: check-xml - id: check-yaml @@ -16,9 +18,6 @@ repos: - id: end-of-file-fixer exclude: \.min\.js$ - id: trailing-whitespace - - id: check-json - exclude: tsconfig.json - - id: check-yaml - repo: https://github.com/PyCQA/bandit rev: 1.7.4