Browse Source

Speed up semgrep on pre-commit (#11927)

Skip version check, and only run on Python files
Matt Westcott 10 months ago
parent
commit
4f78cced7f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      .pre-commit-config.yaml

+ 2 - 1
.pre-commit-config.yaml

@@ -52,4 +52,5 @@ repos:
     rev: v1.40.0
     hooks:
       - id: semgrep
-        args: ['--config', '.semgrep.yml', '--error']
+        files: \.py$
+        args: ['--config', '.semgrep.yml', '--disable-version-check', '--error']