From 9ba553fef74c9969fc6d19a7716e51078794996e Mon Sep 17 00:00:00 2001 From: Jim Fitzpatrick Date: Sat, 11 Apr 2026 14:37:58 +0100 Subject: [PATCH 1/2] Set the correct dev version Signed-off-by: Jim Fitzpatrick --- build.zig.zon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig.zon b/build.zig.zon index dd532dc..7a831c4 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -9,7 +9,7 @@ .name = .grab, // This is a [Semantic Version](https://semver.org/). // In a future version of Zig it will be used for package deduplication. - .version = "0.9.0-dev", + .version = "0.10.0-dev", // Together with name, this represents a globally unique package // identifier. This field is generated by the Zig toolchain when the // package is first created, and then *never changes*. This allows From a53c66486d9ea56c42ee5bc14dcaf6f451470a5b Mon Sep 17 00:00:00 2001 From: Jim Fitzpatrick Date: Sat, 11 Apr 2026 14:44:47 +0100 Subject: [PATCH 2/2] Update precommit configuration Signed-off-by: Jim Fitzpatrick --- .github/workflows/workflow.yaml | 5 +++++ .pre-commit-config.yaml | 10 +++++++++- changelog.d/+340a9191.misc.md | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 changelog.d/+340a9191.misc.md diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 1099a0d..f2934f2 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -22,6 +22,11 @@ jobs: with: python-version: '3.13' + - name: Install Zig + uses: mlugg/setup-zig@v2 + with: + version: "0.15.2" + - name: Install dependencies run: python -m pip install pre-commit diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 21c70ec..180e4b0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,5 +11,13 @@ repos: - id: check-yaml - id: no-commit-to-branch args: - - --branch=master + - --branch=main - id: debug-statements +- repo: local + hooks: + - id: zig-build-test + name: Zig build test + entry: zig build test + language: system + pass_filenames: false + diff --git a/changelog.d/+340a9191.misc.md b/changelog.d/+340a9191.misc.md new file mode 100644 index 0000000..1c106b8 --- /dev/null +++ b/changelog.d/+340a9191.misc.md @@ -0,0 +1 @@ +Update precommit configuration to include running zig test at commit time