diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f21a4365..0d8678afb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,50 @@ # Changelog +## [2.7.0](https://github.com/jdx/hk/compare/v2.6.0..v2.7.0) - 2026-10-16 + +### 🚀 Features + +- **(builtins)** report jactionlint findings as SARIF and apply its fixes by [@jdx](https://github.com/jdx) in [#1687](https://github.com/jdx/hk/pull/1687) +- **(builtins)** add Herb formatter and linter by [@beauraF](https://github.com/beauraF) in [#1706](https://github.com/jdx/hk/pull/1706) +- **(builtins)** add ansible-lint linter by [@illesnagy1](https://github.com/illesnagy1) in [#1707](https://github.com/jdx/hk/pull/1707) +- **(builtins)** add packer fmt formatter by [@illesnagy1](https://github.com/illesnagy1) in [#1708](https://github.com/jdx/hk/pull/1708) +- **(step)** add profile_condition to enable steps with and/or/not over profiles by [@jdx](https://github.com/jdx) in [#1684](https://github.com/jdx/hk/pull/1684) +- **(validate)** add --json output and --deny-warnings to fail on warnings by [@jdx](https://github.com/jdx) in [#1699](https://github.com/jdx/hk/pull/1699) + +### 🐛 Bug Fixes + +- **(builtins)** stop passing file arguments to brakeman by [@beauraF](https://github.com/beauraF) in [#1704](https://github.com/jdx/hk/pull/1704) +- **(config)** keep output.log, hk.log and patches in the repository's git dir by [@jdx](https://github.com/jdx) in [#1705](https://github.com/jdx/hk/pull/1705) +- **(step)** show rendered findings instead of raw SARIF in failed check output by [@jdx](https://github.com/jdx) in [#1695](https://github.com/jdx/hk/pull/1695) + +### 📚 Documentation + +- refresh competitor benchmark for v2.6.0 by [@jdx](https://github.com/jdx) in [#1688](https://github.com/jdx/hk/pull/1688) + +### 🛡️ Security + +- **(ci)** remove claude-code-action workflow by [@jdx](https://github.com/jdx) in [#1694](https://github.com/jdx/hk/pull/1694) +- **(deps)** update mise tools by [@renovate[bot]](https://github.com/renovate[bot]) in [#1689](https://github.com/jdx/hk/pull/1689) +- **(deps)** bump jactionlint to 2.2.0 and mbx to 1.24.0 by [@jdx](https://github.com/jdx) in [#1700](https://github.com/jdx/hk/pull/1700) +- recommend oxfmt over prettier in examples and getting started by [@jdx](https://github.com/jdx) in [#1711](https://github.com/jdx/hk/pull/1711) + +### 🔍 Other Changes + +- **(release)** shorten minimum release age to 2 days by [@jdx](https://github.com/jdx) in [bd30b5d](https://github.com/jdx/hk/commit/bd30b5d7eb3de89e7824292f984beb2e23e19b5c) + +### 📦️ Dependency Updates + +- update github actions by [@renovate[bot]](https://github.com/renovate[bot]) in [#1690](https://github.com/jdx/hk/pull/1690) +- update actions/checkout action to v7 by [@renovate[bot]](https://github.com/renovate[bot]) in [#1691](https://github.com/jdx/hk/pull/1691) +- update dependency preact to v11 by [@renovate[bot]](https://github.com/renovate[bot]) in [#1692](https://github.com/jdx/hk/pull/1692) +- update node.js to v26.11.1 by [@renovate[bot]](https://github.com/renovate[bot]) in [#1696](https://github.com/jdx/hk/pull/1696) +- update rustls to 0.23.46 by [@jdx](https://github.com/jdx) in [#1701](https://github.com/jdx/hk/pull/1701) +- update rust crate usage-rs to v7.0.1 by [@renovate[bot]](https://github.com/renovate[bot]) in [#1702](https://github.com/jdx/hk/pull/1702) + +### New Contributors + +- @beauraF made their first contribution in [#1706](https://github.com/jdx/hk/pull/1706) + ## [2.6.0](https://github.com/jdx/hk/compare/v2.5.0..v2.6.0) - 2026-10-12 ### 🚀 Features diff --git a/Cargo.lock b/Cargo.lock index 00998c5cf..69d521c1d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -847,7 +847,7 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hk" -version = "2.6.0" +version = "2.7.0" dependencies = [ "arc-swap", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 625506450..b74db8e5a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ name = "hk" repository = "https://github.com/jdx/hk" resolver = "3" rust-version = "1.94.0" -version = "2.6.0" +version = "2.7.0" [[bin]] name = "generate-docs" diff --git a/README.md b/README.md index 217195063..dc5dbda1c 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,8 @@ You can also install hk with `brew install hk` or `cargo install hk --locked`. T This example uses hk’s built-in whitespace utilities, so it needs no additional linter: ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" steps { ["trailing-whitespace"] = Builtins.trailing_whitespace diff --git a/docs/builtins.md b/docs/builtins.md index b3d7e1476..8c741284e 100644 --- a/docs/builtins.md +++ b/docs/builtins.md @@ -12,8 +12,8 @@ Builtins are reusable Pkl step definitions for linters, formatters, and hk’s o ## Use a builtin ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" hooks { ["check"] { diff --git a/docs/cli/commands.json b/docs/cli/commands.json index 0e32a1278..e6cc3e6e8 100644 --- a/docs/cli/commands.json +++ b/docs/cli/commands.json @@ -8509,7 +8509,7 @@ "sources": {}, "files": [] }, - "version": "2.6.0", + "version": "2.7.0", "usage": "", "complete": { "directory": { diff --git a/docs/cli/index.md b/docs/cli/index.md index ed0a44e0a..84454cc0d 100644 --- a/docs/cli/index.md +++ b/docs/cli/index.md @@ -23,7 +23,7 @@ Start with [getting started](/getting_started) for an end-to-end setup. Command- **Usage:** `hk [FLAGS] ` -**Version:** 2.6.0 +**Version:** 2.7.0 ## Global Flags diff --git a/docs/configuration.md b/docs/configuration.md index 7e0a04c9f..88a04aed9 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -14,8 +14,8 @@ For a first setup, use [getting started](/getting_started). For complete configu A configuration amends hk’s [Pkl schema](/pkl_introduction). For a shared set of linters, prefer top-level `steps`: ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" steps { ["eslint"] = Builtins.eslint @@ -505,8 +505,8 @@ package { ``` ```pkl [hk.pkl] -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" steps { ["trailing_whitespace"] = Builtins.trailing_whitespace @@ -604,7 +604,7 @@ Higher layers override lower ones for scalar settings. List settings such as `ex Use `~/.config/hk/config.pkl` for defaults and additional steps across projects. The location follows `XDG_CONFIG_HOME` or `HK_CONFIG_DIR` when set. ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" jobs = 4 fail_fast = false diff --git a/docs/getting_started.md b/docs/getting_started.md index d7aaeb385..83f139ba2 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -70,8 +70,8 @@ This complete example needs no extra tools. The `trailing_whitespace` and `newli Replace the contents of the `hk.pkl` that `hk init` generated with this example. If `hk init` detected linters, its steps need those tools on `PATH`; the example below does not. ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" steps { ["trailing_whitespace"] = Builtins.trailing_whitespace diff --git a/docs/hooks.md b/docs/hooks.md index f6641d852..ab63bba9d 100644 --- a/docs/hooks.md +++ b/docs/hooks.md @@ -155,8 +155,8 @@ failure. `commit-msg` runs after the message is prepared and before the commit is created. Use the built-in Conventional Commits check: ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" hooks { ["commit-msg"] { diff --git a/docs/migrate-husky.md b/docs/migrate-husky.md index 5366d67ff..cd0ba2468 100644 --- a/docs/migrate-husky.md +++ b/docs/migrate-husky.md @@ -95,7 +95,7 @@ npm test The same hooks in hk: ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" hooks { ["pre-commit"] { diff --git a/docs/migrate-lefthook.md b/docs/migrate-lefthook.md index 3b709f0cc..3558fa10d 100644 --- a/docs/migrate-lefthook.md +++ b/docs/migrate-lefthook.md @@ -124,7 +124,7 @@ pre-push: The same hooks in hk: ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" hooks { ["pre-commit"] { diff --git a/docs/mise_integration.md b/docs/mise_integration.md index 99ae2c820..8c9c0dc92 100644 --- a/docs/mise_integration.md +++ b/docs/mise_integration.md @@ -84,7 +84,7 @@ Review the generated tools and tasks. Existing `mise.toml` files are preserved. Use a task when a check is also useful outside Git hooks: ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" hooks { ["check"] { diff --git a/docs/pirate/builtins.md b/docs/pirate/builtins.md index 5ad6afd0e..86b1cb010 100644 --- a/docs/pirate/builtins.md +++ b/docs/pirate/builtins.md @@ -13,8 +13,8 @@ Builtins be the standing crew who come with the ship: reusable Pkl step definiti ## Muster a builtin {#use-a-builtin} ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" hooks { ["check"] { diff --git a/docs/pirate/cli/index.md b/docs/pirate/cli/index.md index dacc23c19..32cf0e158 100644 --- a/docs/pirate/cli/index.md +++ b/docs/pirate/cli/index.md @@ -24,7 +24,7 @@ New aboard, sailor? Get under way with [getting started](/getting_started), a se **How to hail it:** `hk [FLAGS] ` -**Version:** 2.6.0 +**Version:** 2.7.0 ## Flags flown on every call {#global-flags} diff --git a/docs/pirate/configuration.md b/docs/pirate/configuration.md index d7f4a3b87..d3f1d2076 100644 --- a/docs/pirate/configuration.md +++ b/docs/pirate/configuration.md @@ -15,8 +15,8 @@ Getting under way for the first time? Follow [getting started](/getting_started) A configuration amends hk's [Pkl schema](/pkl_introduction). For one set of lookouts that every hook shares, prefer top-level `steps`: ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" steps { ["eslint"] = Builtins.eslint @@ -465,8 +465,8 @@ package { ``` ```pkl [hk.pkl] -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" steps { ["trailing_whitespace"] = Builtins.trailing_whitespace @@ -564,7 +564,7 @@ For scalar settings, a higher layer's value overrides the ones below it. List se Use `~/.config/hk/config.pkl` for defaults and extra steps that sail with ye on every project. The location follows `XDG_CONFIG_HOME` or `HK_CONFIG_DIR` when set. ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" jobs = 4 fail_fast = false diff --git a/docs/pirate/getting_started.md b/docs/pirate/getting_started.md index 5fe76ec72..d4d81d5c8 100644 --- a/docs/pirate/getting_started.md +++ b/docs/pirate/getting_started.md @@ -67,8 +67,8 @@ This complete example needs no extra tools. The `trailing_whitespace` and `newli Replace the whole of the `hk.pkl` that `hk init` drew up with this example. If `hk init` spotted linters, its steps need those tools aboard on `PATH`; the example below does not. ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" steps { ["trailing_whitespace"] = Builtins.trailing_whitespace diff --git a/docs/pirate/hooks.md b/docs/pirate/hooks.md index 4c1dbc4df..2c604516b 100644 --- a/docs/pirate/hooks.md +++ b/docs/pirate/hooks.md @@ -156,8 +156,8 @@ failure and hauled back to port. `commit-msg` runs after the commit message is prepared and before the commit is made. Use the built-in Conventional Commits check, one of the standing crew: ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" hooks { ["commit-msg"] { diff --git a/docs/pirate/migrate-husky.md b/docs/pirate/migrate-husky.md index 4a9baebc3..37b99fd36 100644 --- a/docs/pirate/migrate-husky.md +++ b/docs/pirate/migrate-husky.md @@ -96,7 +96,7 @@ npm test The same hooks in hk: ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" hooks { ["pre-commit"] { diff --git a/docs/pirate/migrate-lefthook.md b/docs/pirate/migrate-lefthook.md index 193f556e7..c60bccb1d 100644 --- a/docs/pirate/migrate-lefthook.md +++ b/docs/pirate/migrate-lefthook.md @@ -125,7 +125,7 @@ pre-push: The same hooks in hk: ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" hooks { ["pre-commit"] { diff --git a/docs/pirate/mise_integration.md b/docs/pirate/mise_integration.md index 7884f290f..8742dffaa 100644 --- a/docs/pirate/mise_integration.md +++ b/docs/pirate/mise_integration.md @@ -76,7 +76,7 @@ Look over the tools and tasks it drew up. A `mise.toml` that's already aboard is Use a task when a check earns its keep outside Git hooks too: ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" hooks { ["check"] { diff --git a/docs/pirate/pkl_introduction.md b/docs/pirate/pkl_introduction.md index 213e1f557..01158f3fe 100644 --- a/docs/pirate/pkl_introduction.md +++ b/docs/pirate/pkl_introduction.md @@ -14,8 +14,8 @@ Pkl evaluates the charts. Then hk runs the commands those charts set down. Every ship's configuration should amend hk's base schema, the base chart every set of charts is drawn over: ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" ``` `amends` supplies the properties and classes ye're allowed, such as `Step`, `Hook`, and `Group`. `import` brings another module aboard under its own name, here `Builtins`. @@ -154,7 +154,7 @@ This is a local amendment of an existing project configuration: yer own marks on its path relative to the module doing the importing. ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" import* "generated/*.pkl" as generated @@ -174,7 +174,7 @@ add or remove step definitions, signing hands on and off, without editing `hk.pk ```pkl // generated/oxfmt.pkl -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" STEPS: Mapping = new { ["oxfmt"] { diff --git a/docs/pirate/reference/examples/monorepo.md b/docs/pirate/reference/examples/monorepo.md index 0d062bcca..8793ca155 100644 --- a/docs/pirate/reference/examples/monorepo.md +++ b/docs/pirate/reference/examples/monorepo.md @@ -46,7 +46,7 @@ lists the subproject directories (literal names or globs): ```pkl // hk.pkl (repo root) -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" subprojects = List("frontend", "backend", "packages/*") @@ -61,8 +61,8 @@ hooks { ```pkl // frontend/hk.pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" local linters = new Mapping { // aube resolves these executables from frontend/node_modules/.bin @@ -87,8 +87,8 @@ hooks { ```pkl // backend/hk.pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" local linters = new Mapping { ["cargo-fmt"] = Builtins.cargo_fmt diff --git a/docs/pkl_introduction.md b/docs/pkl_introduction.md index aa787aa26..3d255c454 100644 --- a/docs/pkl_introduction.md +++ b/docs/pkl_introduction.md @@ -13,8 +13,8 @@ Pkl evaluates configuration. hk then runs the commands that configuration define Every project configuration should amend hk’s base schema: ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" ``` `amends` supplies the allowed properties and classes, such as `Step`, `Hook`, and `Group`. `import` makes another module available under its name, here `Builtins`. @@ -151,7 +151,7 @@ This is a local amendment of an existing project configuration. Save it as `hk.l its path relative to the importing module. ```pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" import* "generated/*.pkl" as generated @@ -171,7 +171,7 @@ add or remove step definitions without editing `hk.pkl`: ```pkl // generated/oxfmt.pkl -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" STEPS: Mapping = new { ["oxfmt"] { diff --git a/docs/public/custom-linters.pkl b/docs/public/custom-linters.pkl index 7bf6bd405..57de5a623 100644 --- a/docs/public/custom-linters.pkl +++ b/docs/public/custom-linters.pkl @@ -1,7 +1,7 @@ /// A custom step using hk's whitespace utility, including check and fix tests. -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" steps { ["whitespace"] = new Step { diff --git a/docs/public/javascript-project.pkl b/docs/public/javascript-project.pkl index 975e6a0eb..9ed043f24 100644 --- a/docs/public/javascript-project.pkl +++ b/docs/public/javascript-project.pkl @@ -1,7 +1,7 @@ /// oxfmt and ESLint, with TypeScript checking enabled by the types profile. -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" steps { ["eslint"] = Builtins.eslint diff --git a/docs/public/monorepo.pkl b/docs/public/monorepo.pkl index cbe6ceda0..f099bbc49 100644 --- a/docs/public/monorepo.pkl +++ b/docs/public/monorepo.pkl @@ -3,9 +3,9 @@ /// Backend: Rust /// Infrastructure: Terraform /// Uses groups to organize steps by component -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" // Frontend linters (JavaScript/TypeScript) local frontend = new Group { diff --git a/docs/public/python-project.pkl b/docs/public/python-project.pkl index b0ef1eb64..c1e56928b 100644 --- a/docs/public/python-project.pkl +++ b/docs/public/python-project.pkl @@ -1,7 +1,7 @@ /// Ruff linting and formatting, with optional mypy checks. -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" steps { ["ruff"] = Builtins.ruff diff --git a/docs/reference/examples/monorepo.md b/docs/reference/examples/monorepo.md index bba5e43b1..f7d8eacf7 100644 --- a/docs/reference/examples/monorepo.md +++ b/docs/reference/examples/monorepo.md @@ -45,7 +45,7 @@ its own `hk.pkl` next to its code. The root config lists the subproject director ```pkl // hk.pkl (repo root) -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" subprojects = List("frontend", "backend", "packages/*") @@ -60,8 +60,8 @@ hooks { ```pkl // frontend/hk.pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" local linters = new Mapping { // aube resolves these executables from frontend/node_modules/.bin @@ -86,8 +86,8 @@ hooks { ```pkl // backend/hk.pkl -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" local linters = new Mapping { ["cargo-fmt"] = Builtins.cargo_fmt diff --git a/hk-example.pkl b/hk-example.pkl index 027d50546..fcff0ddf7 100644 --- a/hk-example.pkl +++ b/hk-example.pkl @@ -1,6 +1,6 @@ -amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Builtins.pkl" +import "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Builtins.pkl" local linters = new Mapping { // some linters are built into hk diff --git a/hk.pkl b/hk.pkl index 2201fb1fa..5a3caaa66 100644 --- a/hk.pkl +++ b/hk.pkl @@ -1,4 +1,4 @@ -// amends "package://github.com/jdx/hk/releases/download/v2.6.0/hk@2.6.0#/Config.pkl" +// amends "package://github.com/jdx/hk/releases/download/v2.7.0/hk@2.7.0#/Config.pkl" amends "pkl/Config.pkl" import "pkl/Builtins.pkl" diff --git a/hk.usage.kdl b/hk.usage.kdl index a9b9c6d03..b91c9292d 100644 --- a/hk.usage.kdl +++ b/hk.usage.kdl @@ -2,7 +2,7 @@ min_usage_version "4.0" name hk bin hk -version "2.6.0" +version "2.7.0" unknown_flags error subcommand_required #true flagset hook-options {