From 5b75bb46c8efe56157976ba453c686eb350c0948 Mon Sep 17 00:00:00 2001 From: Jamil RAICHOUNI Date: Mon, 7 Oct 2024 11:20:12 +0200 Subject: [PATCH] ci: Update pre-commit hooks Update pre-commit hooks to the latest versions and limit the pre-commit version to <4.0.0 because of . --- .github/workflows/deploy-docker-images.yml | 2 +- .pre-commit-config.yaml | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy-docker-images.yml b/.github/workflows/deploy-docker-images.yml index 5b28a011..6cde84c1 100644 --- a/.github/workflows/deploy-docker-images.yml +++ b/.github/workflows/deploy-docker-images.yml @@ -21,7 +21,7 @@ jobs: python-version: '3.11' - name: Install pre-commit run: |- - python -m pip install pre-commit + python -m pip install 'pre-commit<4.0.0' - name: Run pre-commit run: |- pre-commit run --all-files diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7e47ee05..48e83ce0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,11 +2,11 @@ # SPDX-License-Identifier: CC0-1.0 default_install_hook_types: [commit-msg, pre-commit] -default_stages: [commit, merge-commit] +default_stages: [pre-commit, pre-merge-commit] minimum_pre_commit_version: 3.2.0 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -28,7 +28,7 @@ repos: - id: fix-byte-order-marker - id: trailing-whitespace - repo: https://github.com/pylint-dev/pylint - rev: v3.1.0 + rev: v3.3.1 hooks: - id: pylint additional_dependencies: @@ -40,7 +40,7 @@ repos: - -dfixme - -dduplicate-code - repo: https://github.com/psf/black-pre-commit-mirror - rev: 24.3.0 + rev: 24.8.0 hooks: - id: black - repo: https://github.com/PyCQA/isort @@ -61,7 +61,7 @@ repos: additional_dependencies: - pydocstyle[toml] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.9.0 + rev: v1.11.2 hooks: - id: mypy additional_dependencies: @@ -121,23 +121,23 @@ repos: - --comment-style - '..| |' - repo: https://github.com/fsfe/reuse-tool - rev: v3.0.2 + rev: v4.0.3 hooks: - id: reuse - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook - rev: v9.14.0 + rev: v9.18.0 hooks: - id: commitlint stages: [commit-msg] additional_dependencies: - '@commitlint/config-conventional' - repo: https://github.com/asottile/pyupgrade - rev: v3.15.2 + rev: v3.17.0 hooks: - id: pyupgrade args: ['--py311-plus'] - repo: https://github.com/hadolint/hadolint - rev: v2.12.0 + rev: v2.13.1-beta hooks: - id: hadolint-docker - repo: local