From bf02e2b757deca0184feae8a5543be109a859ef6 Mon Sep 17 00:00:00 2001 From: Harjot Gill Date: Tue, 6 Sep 2022 10:11:02 -0700 Subject: [PATCH] pre-commit: install tools (#342) --- .pre-commit-config.yaml | 9 +++++++++ scripts/precommit/install_tools.sh | 5 +++++ 2 files changed, 14 insertions(+) create mode 100755 scripts/precommit/install_tools.sh diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1625eec131..6298b796ec 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,6 +4,15 @@ default_stages: - commit repos: + - repo: local + hooks: + - id: tools + name: "Install tools" + entry: "./scripts/precommit/install_tools.sh" + language: script + always_run: true + pass_filenames: false + description: "Install tools" - repo: local hooks: - id: proto diff --git a/scripts/precommit/install_tools.sh b/scripts/precommit/install_tools.sh new file mode 100755 index 0000000000..0aa5ab04d8 --- /dev/null +++ b/scripts/precommit/install_tools.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -euo pipefail + +make install-go-tools +make install-python-tools