Skip to content

Commit 3f2d3d8

Browse files
DevOpsDevOps
authored andcommitted
feat: sync-precommit
1 parent 3bd9878 commit 3f2d3d8

5 files changed

Lines changed: 6 additions & 3 deletions

File tree

global/pre-commit.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ setup_pre_commit_config() {
6868
if [[ ! -f "$file" ]]; then
6969
cat > "$file" <<'EOF'
7070
repos:
71-
# ✅ Precommit hooks
71+
############ ✅ Precommit hooks #############
7272
- repo: https://github.com/pre-commit/pre-commit-hooks
7373
rev: v4.4.0
7474
hooks:
@@ -81,7 +81,7 @@ repos:
8181
- id: destroyed-symlinks
8282
- id: pretty-format-json
8383
84-
# ✅ golang fmt and go tidey
84+
########## ✅ golang fmt and go tidey #########
8585
- repo: https://github.com/TekWizely/pre-commit-golang
8686
rev: v1.0.0-rc.1
8787
hooks:

golang/pre-commit.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ setup_pre_commit_config() {
6464

6565
cat > "$file" <<'EOF'
6666
repos:
67+
############ ✅ Precommit hooks #############
6768
- repo: https://github.com/pre-commit/pre-commit-hooks
6869
rev: v4.4.0
6970
hooks:

python/pre-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ setup_pre_commit_config() {
6060

6161
cat > "$config" <<'EOF'
6262
repos:
63-
# ✅ Generic pre-commit hygiene
63+
############ ✅ Precommit hooks #############
6464
- repo: https://github.com/pre-commit/pre-commit-hooks
6565
rev: v6.0.0
6666
hooks:

terraform/pre-commit.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ setup_pre_commit_config() {
4444
if [ ! -f "$pre_commit_config" ]; then
4545
cat > "$pre_commit_config" <<EOF
4646
repos:
47+
############ ✅ Terraform Docs #############
4748
- repo: https://github.com/terraform-docs/terraform-docs
4849
rev: "v0.16.0"
4950
hooks:

typescript/pre-commit.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ setup_pre_commit_config() {
7171
if [[ ! -f "$file" ]]; then
7272
cat > "$file" <<'EOF'
7373
repos:
74+
############ ✅ Precommit hooks #############
7475
- repo: https://github.com/pre-commit/pre-commit-hooks
7576
rev: v4.4.0
7677
hooks:

0 commit comments

Comments
 (0)