From 7997ba6b38844d7a6607ff9daae483c19637df07 Mon Sep 17 00:00:00 2001 From: Robbie Blaine <4052340+rblaine95@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:25:16 +0200 Subject: [PATCH] :arrow_up: Pre-Commit 4.0 (#1098) * Bump `pre-commit` from `3.8` to `4.0` in `.mise.toml` * Bump `blacken-docs` commit hook from `1.15.0` to `1.19.0` --- .mise.toml | 2 +- .pre-commit-config.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.mise.toml b/.mise.toml index fa4e72f5e..ec9c793cf 100644 --- a/.mise.toml +++ b/.mise.toml @@ -8,7 +8,7 @@ istioctl = "1.23" kind = "0.24" kubectl = "1.31" poetry = { version = "1.8", pyproject = "pyproject.toml" } -pre-commit = "3.8" +pre-commit = "4.0" python = "3.12" tilt = "0.33" usage = "latest" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5bebc93d0..f49db5057 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,15 +3,15 @@ repos: rev: 24.8.0 hooks: - id: black - stages: [push] + stages: [pre-push] language_version: python3 - repo: https://github.com/asottile/blacken-docs - rev: 1.15.0 + rev: 1.19.0 hooks: - id: blacken-docs - stages: [push] - additional_dependencies: [black==24.8.0] + stages: [pre-push] + additional_dependencies: [black~=24.8.0] language_version: python3 files: '\.(rst|md|markdown|py|tex)$' @@ -19,5 +19,5 @@ repos: rev: 5.13.2 hooks: - id: isort - stages: [push] + stages: [pre-push] args: ["--profile", "black", "."]