Skip to content

Commit 5ba5fcc

Browse files
committed
feat: add sync submodule in pre-commit
1 parent ff9bd2b commit 5ba5fcc

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ repos:
2222
id: gitleaks
2323
- repo: local
2424
hooks:
25+
- id: sync-submodules
26+
name: Sync git submodules
27+
entry: bash -c 'output=$(git submodule update --init --recursive --remote 2>&1); [ -z "$output" ]'
28+
language: system
29+
always_run: true
30+
pass_filenames: false
2531
- id: nb-to-py
2632
name: convert notebooks to python
2733
entry: make nb-to-py

scripts/shared

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sonar.projectVersion=1.0
88
sonar.sources=leetcode,leetcode_py
99
sonar.tests=leetcode
1010
sonar.test.inclusions=**/tests.py
11-
sonar.exclusions=**/conftest.py,**/.templates/**,**/__pycache__/**,**/.venv/**
11+
sonar.exclusions=**/conftest.py,**/.templates/**,**/__pycache__/**,**/.venv/**,**/playground.py
1212

1313
# Python specific settings
1414
sonar.python.version=3.13

0 commit comments

Comments
 (0)