Skip to content

Commit 7b46f15

Browse files
ci(semgrep): add Semgrep pre-commit hook
1 parent 7ddd7d2 commit 7b46f15

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,15 @@ repos:
2323
entry: ruff format --force-exclude
2424
types: [python]
2525
require_serial: true
26+
27+
28+
- repo: https://github.com/semgrep/pre-commit
29+
rev: v1.144.0
30+
hooks:
31+
- id: semgrep
32+
# Use Semgrep's "default" ruleset and fail the commit on findings
33+
args:
34+
- --config
35+
- p/default
36+
- --error
37+
- --skip-unknown-extensions

0 commit comments

Comments
 (0)