Skip to content

Commit

Permalink
Allow running commit hooks outside of poetry/venv. (#1503)
Browse files Browse the repository at this point in the history
  • Loading branch information
dokterbob authored Nov 7, 2024
1 parent aa146db commit fc5acde
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
module.exports = {
'**/*.{js,jsx,ts,tsx}': ['npx prettier --write', 'npx eslint --fix'],
'**/*.{ts,tsx}': [() => 'tsc --skipLibCheck --noEmit'],
'**/*.py': ['ruff check --fix', 'ruff format', () => 'pnpm run lintPython'],
'**/*.py': [
'cd backend && poetry run ruff check --fix',
'cd backend && poetry run ruff format',
() => 'pnpm run lintPython'
],
'.github/{workflows,actions}/**': ['actionlint']
};

0 comments on commit fc5acde

Please sign in to comment.