From 4680f30fcaf07fec4ecf330a498081dd74515436 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Sun, 3 Jan 2021 10:59:19 -0700 Subject: [PATCH] add typescript check to pre-commit --- .pre-commit-config.yaml | 8 ++++++++ .tests/pre-commit-frontend.sh | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100755 .tests/pre-commit-frontend.sh diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f1b39b4..adc3ad9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,3 +5,11 @@ repos: - id: flake8 stages: - commit + - repo: local + hooks: + - id: frontend_checks + name: Frontend Checks + stages: + - commit + entry: ./.tests/pre-commit-frontend.sh + language: script diff --git a/.tests/pre-commit-frontend.sh b/.tests/pre-commit-frontend.sh new file mode 100755 index 0000000..6be48dc --- /dev/null +++ b/.tests/pre-commit-frontend.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +cd ../hyperglass/ui + +yarn typecheck + +exit 0