mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
feat(type-checking): Add type-checking pre-commit hooks (#32261)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user