Skip to content

Commit

Permalink
Only lint Python when Python files have changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
dokterbob committed Oct 31, 2024
1 parent 08c6fac commit 44549c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pnpm lint-staged
pnpm run lintPython
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
};

0 comments on commit 44549c4

Please sign in to comment.