From e84ab5afb75f11a0ff3586a38ee506d0cbd32c28 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 21 Oct 2024 20:08:14 +0900 Subject: [PATCH] Use native pre-commit hook for hacking Change-Id: I69d46ca4229f2ba2a5a30ab55e700f1c0c2a7cab --- .pre-commit-config.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7b8155ec..d77300c1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,16 +18,11 @@ repos: - id: debug-statements - id: check-yaml files: .*\.(yaml|yml)$ - - repo: local + - repo: https://opendev.org/openstack/hacking + rev: 7.0.0 hooks: - - id: flake8 - name: flake8 - additional_dependencies: - - hacking>=6.1.0,<6.2.0 - language: python - entry: flake8 - files: '^.*\.py$' - exclude: '^(doc|releasenotes|tools)/.*$' + - id: hacking + additional_dependencies: [] - repo: https://github.com/PyCQA/bandit rev: 1.7.6 hooks: