feat(type-checking): Add type-checking pre-commit hooks (#32261)

This commit is contained in:
alveifbklsiu259
2025-02-20 07:12:17 +08:00
committed by GitHub
parent b269d920a9
commit e422e3c620
13 changed files with 472 additions and 8 deletions

View File

@@ -68,6 +68,13 @@ repos:
language: system
pass_filenames: true
files: \.(js|jsx|ts|tsx)$
- id: type-checking-frontend
name: Type-Checking (Frontend)
entry: ./scripts/check-type.js
args: [package=superset-frontend, excludeDeclarationDir=cypress-base]
language: node
files: ^superset-frontend\/.*\.(js|jsx|ts|tsx)$
exclude: ^superset-frontend/cypress-base\/
# blacklist unsafe functions like make_url (see #19526)
- repo: https://github.com/skorokithakis/blacklist-pre-commit-hook
rev: e2f070289d8eddcaec0b580d3bde29437e7c8221
@@ -83,5 +90,5 @@ repos:
rev: v0.8.0
hooks:
- id: ruff
args: [ --fix ]
args: [--fix]
- id: ruff-format