From ceb488093a4c026a89e7a06afed94ca7e483fb12 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 8 May 2025 11:39:39 +0100 Subject: [PATCH] pre-commit: Bump versions We also manually remove the 'default_language_version' section: all reasonable environments will use Python 3 by default nowadays. Change-Id: Ifc063e69afdf41ca9aef18db686f0e9a6504ea5e Signed-off-by: Stephen Finucane --- .pre-commit-config.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 77a09c7c..29025f65 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,7 @@ --- -default_language_version: - # force all unspecified python hooks to run python3 - python: python3 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: mixed-line-ending @@ -16,7 +13,7 @@ repos: - id: check-yaml files: .*\.(yaml|yml)$ - repo: https://opendev.org/openstack/hacking - rev: 6.1.0 + rev: 7.0.0 hooks: - id: hacking additional_dependencies: []