Skip to content

Commit

Permalink
Fix glob detection within Lefthook configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
No767 committed Oct 22, 2024
1 parent 11345f3 commit 0a2136c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
pre-commit:
commands:
bandit:
glob: "*.{js,ts,jsx,tsx}"
glob: "*.py"
staged_files: true
run: bandit {staged_files} -c pyproject.toml
ruff-check:
glob: "*.{js,ts,jsx,tsx}"
glob: "*.py"
staged_files: true
run: ruff check {staged_files} --fix --exit-non-zero-on-fix --config pyproject.toml
ruff-fmt:
glob: "*.{js,ts,jsx,tsx}"
glob: "*.py"
staged_files: true
run: ruff format {staged_files} --config pyproject.toml
run: ruff format {staged_files} --config pyproject.toml

0 comments on commit 0a2136c

Please sign in to comment.