Skip to content

Commit f3e397c

Browse files
committed
favor lefthook over pre-commit-ci
1 parent 79c3901 commit f3e397c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lefthook.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pre-commit:
2+
commands:
3+
bandit:
4+
glob: "*.{js,ts,jsx,tsx}"
5+
staged_files: true
6+
run: bandit {staged_files} -c pyproject.toml
7+
ruff-check:
8+
glob: "*.{js,ts,jsx,tsx}"
9+
staged_files: true
10+
run: ruff check {staged_files} --fix --exit-non-zero-on-fix --config pyproject.toml
11+
ruff:
12+
glob: "*.{js,ts,jsx,tsx}"
13+
staged_files: true
14+
run: ruff format {staged_files} --config pyproject.toml

0 commit comments

Comments
 (0)