Skip to content

Commit 8512c18

Browse files
wajidzahoor-dlsGDYendell
authored andcommitted
ci(semgrep): add Semgrep pre-commit hook
1 parent 0f75fa1 commit 8512c18

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)