diff --git a/.husky/pre-commit b/.husky/pre-commit index 7eec50068b..cb2c84d5c3 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,2 +1 @@ pnpm lint-staged -pnpm run lintPython diff --git a/lint-staged.config.js b/lint-staged.config.js index 06de234dcf..b76fc52310 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -2,5 +2,5 @@ module.exports = { '**/*.{js,jsx,ts,tsx}': ['npx prettier --write', 'npx eslint --fix'], '**/*.{ts,tsx}': [() => 'tsc --skipLibCheck --noEmit'], - '**/*.py': ['ruff check --fix', 'ruff format'] + '**/*.py': ['ruff check --fix', 'ruff format', () => 'pnpm run lintPython'] };