From 370d8a7927cb6954afb5623cdfa9ff60b0739a6d Mon Sep 17 00:00:00 2001 From: Anton Bondarenko Date: Mon, 15 Jul 2024 14:47:01 +0200 Subject: [PATCH] Replace Bazel pre-commit hook with better one New hook uses Bazel tools v6.4.0 and supports common development environments. Signed-off-by: Anton Bondarenko --- .pre-commit-config.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ecd87138..0a3c6569 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -60,13 +60,15 @@ repos: - id: black stages: [ commit ] name: "Python: Black Formatter" - - repo: https://github.com/Warchant/pre-commit-buildifier - rev: c3e9e6cbb6cab5bb2ff8faf63c31a26b31271fed + - repo: https://github.com/keith/pre-commit-buildifier + rev: 5595ecae0b38f9450b7dddf00591c8591a9939bc hooks: - id: buildifier - args: [ '--version=v7.1.2', '--path' ] + name: "Bazel: Buildifier (fix)" + stages: [ commit ] + - id: buildifier-lint + name: "Bazel: Buildifier (lint)" stages: [ commit ] - name: "Bazel: Buildifier" - repo: local hooks: - id: signed-off-checker -- GitLab