From 847f48b7fa370f042acd00920c55dec3f2f30f90 Mon Sep 17 00:00:00 2001 From: Thomas Johansen Date: Thu, 19 Dec 2024 08:42:07 +0100 Subject: [PATCH] chore: update pre-commit to v4 --- .github/workflows/pre-ci.yml | 2 +- .pre-commit-config.yaml | 2 +- pre-commit-requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pre-ci.yml b/.github/workflows/pre-ci.yml index af2b1871ce..6c5506d0f6 100644 --- a/.github/workflows/pre-ci.yml +++ b/.github/workflows/pre-ci.yml @@ -25,6 +25,6 @@ jobs: - uses: actions/cache@v4 with: path: ~/.cache/pre-commit/ - key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} + key: pre-commit-4|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} - name: Run pre-commit run: SKIP=trufflehog pre-commit run --all-files --verbose diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 28fc915c87..cb18d471c4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,7 +42,7 @@ repos: exclude: tests|neqsim|fixtures|conftest - repo: https://github.com/trufflesecurity/trufflehog - rev: v3.81.10 + rev: v3.87.2 hooks: - id: trufflehog stages: ["pre-commit"] diff --git a/pre-commit-requirements.txt b/pre-commit-requirements.txt index 5cac84d3cd..49edb628c8 100644 --- a/pre-commit-requirements.txt +++ b/pre-commit-requirements.txt @@ -1 +1 @@ -pre-commit==3.2.2 \ No newline at end of file +pre-commit==4.0.1 \ No newline at end of file