From 0a6776ce05569576fe4493d6f866efa4881cf11e Mon Sep 17 00:00:00 2001 From: MarkoSagadin Date: Tue, 19 Nov 2024 11:55:12 +0200 Subject: [PATCH] infra: update hook versions in .pre-commit-config.yaml This removes some "uses deprecated stage names (commit, merge-commit, push)" warnings for some of them, however one still remains (shfmt) as the upstream repo didn't create a new release. Versions of other repos that didn't issue any warning were also updated. --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 585deca..67aa5fc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: trailing-whitespace stages: [pre-commit] @@ -39,7 +39,7 @@ repos: stages: [pre-commit] # typos uses typos.toml to find and fix typos - repo: https://github.com/crate-ci/typos - rev: v1.19.0 + rev: v1.27.3 hooks: - id: typos stages: [pre-commit] @@ -50,7 +50,7 @@ repos: - id: committed stages: [commit-msg] - repo: https://github.com/sirosen/check-jsonschema - rev: 0.28.0 + rev: 0.29.4 hooks: - id: check-github-workflows stages: [pre-commit] @@ -60,13 +60,13 @@ repos: - id: shellcheck stages: [pre-commit] - repo: https://github.com/scop/pre-commit-shfmt - rev: v3.8.0-1 + rev: v3.10.0-1 hooks: - id: shfmt stages: [pre-commit] args: [--indent=4, --simplify, --write] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.4 + rev: v0.7.4 hooks: - id: ruff args: [--fix] @@ -83,7 +83,7 @@ repos: stages: [pre-commit] # markdownlint-cli uses .markdownlint.yaml to lint markdown files - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.39.0 + rev: v0.42.0 hooks: - id: markdownlint exclude: CHANGELOG.md