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