Skip to content

Commit 5228cc7

Browse files
Merge pull request #68 from splunk-soar-connectors/add-precommit-config
2 parents 51300ab + 02362c7 commit 5228cc7

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33

4+
# By default, run each hook only in the standard pre-commit stage
5+
default_install_hook_types: [pre-commit, commit-msg]
6+
default_stages: [pre-commit]
7+
48
# This is a template for connector pre-commit hooks
59
repos:
610
- repo: https://github.com/compilerla/conventional-pre-commit
7-
rev: v4.0.0
11+
rev: v4.1.0
812
hooks:
913
- id: conventional-pre-commit
1014
stages: [commit-msg]
1115
args: [--verbose]
1216
- repo: https://github.com/pre-commit/pre-commit-hooks
13-
rev: v3.2.0
17+
rev: v5.0.0
1418
hooks:
1519
- id: check-merge-conflict
1620
- id: end-of-file-fixer
@@ -23,7 +27,7 @@ repos:
2327
- id: check-json
2428
- id: check-yaml
2529
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: v0.9.6
30+
rev: v0.11.7
2731
hooks:
2832
- id: ruff
2933
args: [ "--fix", "--unsafe-fixes"] # Allow unsafe fixes (ruff pretty strict about what it can fix)
@@ -33,13 +37,18 @@ repos:
3337
hooks:
3438
- id: djlint-reformat-django
3539
- id: djlint-django
40+
- repo: https://github.com/phantomcyber/soar-app-linter
41+
rev: 0.1.0
42+
hooks:
43+
- id: soar-app-linter
44+
args: ["--single-repo", "--message-level", "error"]
3645
- repo: https://github.com/hukkin/mdformat
3746
rev: 0.7.22
3847
hooks:
3948
- id: mdformat
4049
exclude: "release_notes/.*"
4150
- repo: https://github.com/returntocorp/semgrep
42-
rev: v1.107.0
51+
rev: v1.89.0
4352
hooks:
4453
- id: semgrep
4554
- repo: https://github.com/Yelp/detect-secrets
@@ -51,7 +60,7 @@ repos:
5160
exclude: "README.md"
5261
# Central hooks
5362
- repo: https://github.com/phantomcyber/dev-cicd-tools
54-
rev: v2.0.0
63+
rev: v2.0.9
5564
hooks:
5665
- id: build-docs
5766
language: python

0 commit comments

Comments
 (0)