mirror of
https://github.com/apache/superset.git
synced 2026-04-09 19:35:21 +00:00
feat(type-checking): Add type-checking pre-commit hooks (#32261)
This commit is contained in:
4
.github/workflows/pre-commit.yml
vendored
4
.github/workflows/pre-commit.yml
vendored
@@ -41,8 +41,8 @@ jobs:
|
||||
- name: pre-commit
|
||||
run: |
|
||||
set +e # Don't exit immediately on failure
|
||||
# Skip eslint as it requires `npm ci` and is executed in another job
|
||||
export SKIP=eslint
|
||||
# Skip eslint and type-checking-frontend as they requires `npm ci`. Both eslint and type-check are handled in other jobs.
|
||||
export SKIP=eslint,type-checking-frontend
|
||||
pre-commit run --all-files
|
||||
if [ $? -ne 0 ] || ! git diff --quiet --exit-code; then
|
||||
echo "❌ Pre-commit check failed."
|
||||
|
||||
Reference in New Issue
Block a user