From 81e74e189c21b90ef7af02885a609eba6862a112 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 12 Apr 2024 11:51:38 +0100 Subject: [PATCH] pre-commit: Bump versions, switch to native hacking plugin Change-Id: Ic173f9579a2cff1138368e376d50a3f31d1567a3 Signed-off-by: Stephen Finucane --- .pre-commit-config.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5ede599a..77a09c7c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ default_language_version: python: python3 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: trailing-whitespace - id: mixed-line-ending @@ -15,13 +15,9 @@ repos: - id: debug-statements - id: check-yaml files: .*\.(yaml|yml)$ - - repo: local + - repo: https://opendev.org/openstack/hacking + rev: 6.1.0 hooks: - - id: flake8 - name: flake8 - additional_dependencies: - - hacking~=6.0.1 - language: python - entry: flake8 - files: '^.*\.py$' + - id: hacking + additional_dependencies: [] exclude: '^(doc|releasenotes|tools)/.*$'