Skip to content

Commit

Permalink
pre-commit: install tools (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
harjotgill authored Sep 6, 2022
1 parent ebd73a5 commit bf02e2b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions scripts/precommit/install_tools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail

make install-go-tools
make install-python-tools

0 comments on commit bf02e2b

Please sign in to comment.