From b812c060a892ebcbbb19893d576ba3cd3ade5529 Mon Sep 17 00:00:00 2001 From: Faustin Lammler Date: Thu, 19 Oct 2023 10:20:01 +0200 Subject: [PATCH] Update pre-commit tools And make tailing whitespace ignore jade template files --- .pre-commit-config.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d346ba47..3b55cc83 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ exclude: "dockerfiles|ci_build_images/qpress|cross-reference/crossreference/cr/static/cr/font-awesome" repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.5.0 hooks: - id: check-added-large-files - id: check-ast @@ -18,13 +18,17 @@ repos: - id: trailing-whitespace name: Check trailing whitespace args: [--markdown-linebreak-ext=md] + exclude: | + (?x)^( + master-web/templates/home.jade + )$ # - repo: https://gitlab.com/pycqa/flake8.git # rev: 3.9.2 # hooks: # - id: flake8 # name: Check python (flake8) - repo: https://github.com/adrienverge/yamllint.git - rev: v1.28.0 + rev: v1.32.0 hooks: - id: yamllint name: Check yaml files (yamllint) @@ -38,12 +42,12 @@ repos: # name: Check shell style (shfmt) # args: ["-d", "-i", "2", "-ci"] - repo: https://github.com/markdownlint/markdownlint - rev: v0.11.0 + rev: v0.12.0 hooks: - id: markdownlint name: Check for markdown lint (mdl) - repo: https://github.com/codespell-project/codespell - rev: v2.2.1 + rev: v2.2.6 hooks: - id: codespell name: Checks for common misspellings in text files