From bb03564cfd1e59d6cc422fdfa1e4ed950d2a91e9 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 2 Oct 2023 11:18:10 +0100 Subject: [PATCH] pre-commit: Use native hacking pre-commit hook Change-Id: I9401cf21f00c669f81e6e279ec20736e34664b96 Signed-off-by: Stephen Finucane --- .pre-commit-config.yaml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4c7005b1ec..7e72b7502d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,15 +23,11 @@ repos: hooks: - id: remove-tabs exclude: '.*\.(svg)$' - - repo: local + - repo: https://opendev.org/openstack/hacking + rev: 6.0.1 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)/.*$' - repo: https://github.com/pre-commit/mirrors-autopep8 rev: v2.0.4