Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: v1.12.1
_commit: v1.13.2
_src_path: https://github.com/hugoh/go-tools.git
cog_omit_types:
- lint
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ permissions: {}

jobs:
hk:
uses: hugoh/go-tools/.github/workflows/go-hk.yml@8d9b10b0bc322952d04b9113c65d4b66a9ddf8cc
uses: hugoh/go-tools/.github/workflows/go-hk.yml@d6a8f57eab49fff4265edb9510782007c2a6c559
permissions:
contents: read

goci:
uses: hugoh/go-tools/.github/workflows/go-ci.yml@8d9b10b0bc322952d04b9113c65d4b66a9ddf8cc
uses: hugoh/go-tools/.github/workflows/go-ci.yml@d6a8f57eab49fff4265edb9510782007c2a6c559
permissions:
contents: read
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}

release:
needs: [hk, goci]
uses: hugoh/go-tools/.github/workflows/go-release.yml@8d9b10b0bc322952d04b9113c65d4b66a9ddf8cc
uses: hugoh/go-tools/.github/workflows/go-release.yml@d6a8f57eab49fff4265edb9510782007c2a6c559
permissions:
contents: write
with:
Expand Down
8 changes: 8 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://biomejs.dev/schemas/2.5.4/schema.json",
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2
}
}
16 changes: 0 additions & 16 deletions dprint.json

This file was deleted.

2 changes: 1 addition & 1 deletion hk.pkl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
amends "package://github.com/jdx/hk/releases/download/v1.51.0/hk@1.51.0#/Config.pkl"
import "package://github.com/jdx/hk/releases/download/v1.51.0/hk@1.51.0#/Builtins.pkl"
import "package://github.com/hugoh/hk-config/releases/download/v0.3.2/hk-config@0.3.2#/base.pkl" as Base
import "package://github.com/hugoh/hk-config/releases/download/v1.1.0/hk-config@1.1.0#/base.pkl" as Base

min_hk_version = Base.min_hk_version

Expand Down
2 changes: 1 addition & 1 deletion mise-tasks/format
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
#MISE sources=["**/*.go", "**/*.json", "**/*.md", "**/*.toml", "**/*.yaml", "**/*.yml"]
set -e
golangci-lint fmt ./...
dprint fmt . --excludes README.md
hk fix --all
4 changes: 3 additions & 1 deletion mise-tasks/lint-deadcode
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
#MISE description="Check for dead code"
#MISE sources=["**/*.go"]
#USAGE flag "--test" help="Include test files"
if deadcode "${usage_test:+-test}" ./... 2>&1 | grep .; then
flags=()
[ "${usage_test:-}" != "" ] && flags+=(-test)
if deadcode "${flags[@]}" ./... 2>&1 | grep .; then
echo 'dead code found'
exit 1
fi
4 changes: 3 additions & 1 deletion mise-tasks/lint-go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
#MISE description="Lint Go source"
#MISE sources=["**/*.go"]
#USAGE flag "--fix" help="Automatically fix issues"
golangci-lint run "${usage_fix:+--fix}" ./...
flags=()
[ "${usage_fix:-}" != "" ] && flags+=(--fix)
golangci-lint run "${flags[@]}" ./...
2 changes: 1 addition & 1 deletion mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gotestsum = "1.13.0"
hk = "1.51.0"
rumdl = "0.2.34"
zizmor = "1.27.0"
dprint = "0.55.2"
biome = "2.5.4"
ghalint = "1.5.6"
gitleaks = "8.30.1"
actionlint = "1.7.12"
Expand Down
6 changes: 5 additions & 1 deletion testdata/upd_test_bad.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ normal = "120s"
down = "20s"

[checks.list]
ordered = ["http://captive.apple.com/hotspot-detect.html", "ftp://foo.bar/", "dns://8.8.4.4/"]
ordered = [
"http://captive.apple.com/hotspot-detect.html",
"ftp://foo.bar/",
"dns://8.8.4.4/"
]

[downAction]
exec = "cowsay"
Expand Down