Skip to content

Commit 8ab9f62

Browse files
committed
chore(config): update project configuration and tooling
1 parent e909c44 commit 8ab9f62

5 files changed

Lines changed: 51 additions & 27 deletions

File tree

.editorconfig

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,26 @@ trim_trailing_whitespace = false
1414

1515
[*.{yml,yaml}]
1616
indent_style = space
17-
indent_size = 2 # or 4-spaces if you prefer
17+
indent_size = 2
18+
19+
[*.{json,prettierrc}]
20+
indent_style = space
21+
indent_size = 2
22+
23+
[*.{js,mjs,cjs,ts}]
24+
indent_style = space
25+
indent_size = 2
26+
27+
[*.py]
28+
indent_style = space
29+
indent_size = 4
30+
31+
[{Makefile,*.mk}]
32+
indent_style = tab
33+
34+
[*.{xml,cff}]
35+
indent_style = space
36+
indent_size = 2
37+
38+
[{LICENSE,Dockerfile,.gitignore,.dockerignore,.prettierignore}]
39+
insert_final_newline = true

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,6 @@ testdata
3939

4040
# AI Models
4141
.claude
42+
43+
# Node modules
44+
node_modules/

.goreleaser.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ changelog:
1111
sort: asc
1212
filters:
1313
exclude:
14-
- '^.github:'
15-
- '^.vscode:'
16-
- '^test:'
14+
- "^.github:"
15+
- "^.vscode:"
16+
- "^test:"
1717

1818
# ---------------------------
1919
# Builder
@@ -38,31 +38,30 @@ release:
3838
# Announce
3939
# ---------------------------
4040
announce:
41-
4241
# See more at: https://goreleaser.com/customization/announce/#slack
4342
slack:
4443
enabled: false
45-
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Changelog: https://github.com/bsv-blockchain/{{ .ProjectName }}/releases/tag/{{ .Tag }}'
46-
channel: '#test_slack'
44+
message_template: "{{ .ProjectName }} {{ .Tag }} is out! Changelog: https://github.com/bsv-blockchain/{{ .ProjectName }}/releases/tag/{{ .Tag }}"
45+
channel: "#test_slack"
4746
# username: ''
4847
# icon_emoji: ''
4948
# icon_url: ''
5049

5150
# See more at: https://goreleaser.com/customization/announce/#twitter
5251
twitter:
5352
enabled: false
54-
message_template: '{{ .ProjectName }} {{ .Tag }} is out!'
53+
message_template: "{{ .ProjectName }} {{ .Tag }} is out!"
5554

5655
# See more at: https://goreleaser.com/customization/announce/#discord
5756
discord:
5857
enabled: false
59-
message_template: '{{ .ProjectName }} {{ .Tag }} is out!'
58+
message_template: "{{ .ProjectName }} {{ .Tag }} is out!"
6059
# Defaults to `GoReleaser`
61-
author: ''
60+
author: ""
6261
# Defaults to `3888754` - the grey-ish from goreleaser
63-
color: ''
62+
color: ""
6463
# Defaults to `https://goreleaser.com/static/avatar.png`
65-
icon_url: ''
64+
icon_url: ""
6665

6766
# See more at: https://goreleaser.com/customization/announce/#reddit
6867
reddit:
@@ -74,4 +73,4 @@ announce:
7473
# Defaults to `{{ .GitURL }}/releases/tag/{{ .Tag }}`
7574
# url_template: 'https://github.com/bsv-blockchain/{{ .ProjectName }}/releases/tag/{{ .Tag }}'
7675
# Defaults to `{{ .ProjectName }} {{ .Tag }} is out!`
77-
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
76+
title_template: "{{ .ProjectName }} {{ .Tag }} is out!"

.pre-commit-config.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
# extended with the prefixes listed in AGENTS.md
1313
# ----------------------------------------------------------------------
1414

15-
minimum_pre_commit_version: "3.7.0" # requires Python‑based hooks v2.0+
15+
minimum_pre_commit_version: "3.7.0" # requires Python‑based hooks v2.0+
1616

1717
repos:
1818
# ---------------------- Core hygiene hooks --------------------------
1919
- repo: https://github.com/pre-commit/pre-commit-hooks
20-
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
20+
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
2121
hooks:
2222
- id: check-added-large-files
2323
- id: end-of-file-fixer
@@ -26,7 +26,7 @@ repos:
2626

2727
# ------------------------- Go toolchain -----------------------------
2828
- repo: https://github.com/TekWizely/pre-commit-golang
29-
rev: 302c7fd28cdbb62d5fd1e3965fe36e33a5f77803 # frozen: v1.0.0-rc.1
29+
rev: 302c7fd28cdbb62d5fd1e3965fe36e33a5f77803 # frozen: v1.0.0-rc.1
3030
hooks:
3131
- id: go-fmt
3232
- id: go-vet
@@ -37,10 +37,10 @@ repos:
3737

3838
# ------------------------ Security scans ---------------------------
3939
- repo: https://github.com/zricethezav/gitleaks
40-
rev: 47218a628da59ef6b24197d15f4b0248ca87f4f0 # frozen: v8.27.2
40+
rev: 47218a628da59ef6b24197d15f4b0248ca87f4f0 # frozen: v8.27.2
4141
hooks:
4242
- id: gitleaks
43-
stages: [ pre-commit, pre-push ]
43+
stages: [pre-commit, pre-push]
4444

4545
# ------------------- Commenting rule enforcement -------------------
4646
- repo: local
@@ -50,25 +50,25 @@ repos:
5050
language: system
5151
entry: |
5252
bash -c 'revive -config .revive.toml ./...'
53-
types: [ go ]
53+
types: [go]
5454
fail_fast: true
5555

5656
- id: comment-conventions
5757
name: "custom comment linter (AGENTS.md)"
5858
language: python
5959
entry: scripts/comment_lint.py
60-
types: [ go, markdown ]
60+
types: [go, markdown]
6161
pass_filenames: true
6262
additional_dependencies:
6363
- regex==2025.6
6464
- ruamel.yaml==0.18
6565

6666
# --------------------- Commit‑msg validation -----------------------
6767
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
68-
rev: 879f5400493f84c8b683bdeb3366a8439ca17858 # frozen: v9.22.0
68+
rev: 879f5400493f84c8b683bdeb3366a8439ca17858 # frozen: v9.22.0
6969
hooks:
7070
- id: commitlint
71-
stages: [ commit-msg ]
72-
additional_dependencies: [ '@commitlint/config-conventional' ]
71+
stages: [commit-msg]
72+
additional_dependencies: ["@commitlint/config-conventional"]
7373

74-
default_stages: [ pre-commit, pre-push ]
74+
default_stages: [pre-commit, pre-push]

codecov.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ codecov:
88
coverage:
99
status:
1010
patch: false
11-
range: 70..90 # The First number represents red, and the second represents green
11+
range: 70..90 # The First number represents red, and the second represents green
1212
# (default is 70..100)
13-
round: down # up, down, or nearest
14-
precision: 2 # Number of decimal places, between 0 and 5
13+
round: down # up, down, or nearest
14+
precision: 2 # Number of decimal places, between 0 and 5
1515

1616
# Ignoring Paths
1717
# --------------

0 commit comments

Comments
 (0)