Skip to content

Commit 0a2136c

Browse files
committed
Fix glob detection within Lefthook configuration
1 parent 11345f3 commit 0a2136c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lefthook.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
pre-commit:
22
commands:
33
bandit:
4-
glob: "*.{js,ts,jsx,tsx}"
4+
glob: "*.py"
55
staged_files: true
66
run: bandit {staged_files} -c pyproject.toml
77
ruff-check:
8-
glob: "*.{js,ts,jsx,tsx}"
8+
glob: "*.py"
99
staged_files: true
1010
run: ruff check {staged_files} --fix --exit-non-zero-on-fix --config pyproject.toml
1111
ruff-fmt:
12-
glob: "*.{js,ts,jsx,tsx}"
12+
glob: "*.py"
1313
staged_files: true
14-
run: ruff format {staged_files} --config pyproject.toml
14+
run: ruff format {staged_files} --config pyproject.toml

0 commit comments

Comments
 (0)