From 074f75838e493a803905943ff252ffff0d68e601 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Fri, 25 Jul 2025 17:23:52 +1000 Subject: [PATCH] Fix pre-commit warnings for deprecated stage names (#11276) --- .pre-commit-config.yaml | 6 +++--- requirements-dev.txt | 18 ++++++++++++++++++ requirements.txt | 2 -- 3 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 requirements-dev.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 85bba502116..901d3f02bc1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,11 +15,11 @@ # specific language governing permissions and limitations # under the License. --- -default_stages: [commit, push] +default_stages: [pre-commit, pre-push] default_language_version: # force all unspecified Python hooks to run python3 python: python3 -minimum_pre_commit_version: "2.17.0" +minimum_pre_commit_version: "3.2.0" repos: - repo: meta hooks: @@ -32,7 +32,7 @@ repos: name: run gitleaks description: detect hardcoded secrets - 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-case-conflict diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 00000000000..99ad3943160 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +pre-commit diff --git a/requirements.txt b/requirements.txt index 96f8c9c1e70..9711afad3d8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,5 @@ # Marvin dependencies are installed via its bundle -pre-commit - # Install the SolidFire SDK for Python solidfire-sdk-python