github jdx/hk v1.36.0
v1.36.0 - Nix and Format Friends

20 hours ago

This release expands hk's built-in linter library with several new tools, particularly for Nix and infrastructure-as-code workflows, along with a handful of useful fixes.

Highlights

New --pr flag for checking PR-changed files — You can now run hk check --pr to automatically check only the files that have changed in your current pull request compared to the base branch. This makes it easy to run targeted checks during code review without processing your entire codebase. #660

New tmpdir step option — Steps can now specify tmpdir = true to run in an isolated temporary directory, useful for tools that need a clean working environment. Thanks @thejcannon! #663

ty builtin — Added support for ty, Astral's new Python type checker. Thanks @joonas! #566

New Built-in Linters

Thanks to @matdibu for contributing five new builtins:

  • cmake_format — Format CMake files #672
  • deadnix — Find unused code in Nix files #670
  • hclfmt — Format HCL/Terraform files #675
  • nil — Nix language server for diagnostics #669
  • nixf_diagnose — Additional Nix diagnostics #671

The ruff_format and tombi builtins now use --quiet mode for cleaner output. #667 #676

Bug Fixes

  • typos now respects exclusions when using --force-exclude — Thanks @CallumKerson! #659
  • check-case-conflict no longer reports false positives from duplicate file entries — Thanks @safinn! #678
  • yamllint now runs in strict mode for more reliable error detection #673
  • Fixed ignore patterns not being respected when recursing into directories — Thanks @thejcannon! #661
  • Fixed Nix flake builds when git submodules are included — Thanks @jeffutter! #681

New Contributors

Welcome to our new contributors! 🎉


Full documentation: https://hk.jdx.dev/

Changelog

1.36.0 - 2026-02-09

🚀 Features

🐛 Bug Fixes

  • (bultins) respect typos exclusions with --force-exclude by @CallumKerson in #659
  • (docs) escape angle brackets in --pr flag description by @jdx in #666
  • (docs) use valid
    tags instead of
    in sea shanty by @jdx in 12e17f8
  • (go_fumpt) comment out broken check by @matdibu in #668
  • (yamllint) enable strict mode by @matdibu in #673
  • respect ignore when recursing by @thejcannon in #661
  • Deduplicate files in check-case-conflict to prevent false positives by @safinn in #678
  • Fix building of nix flake wiwth the inclusion of git subomdules by @jeffutter in #681

🛡️ Security

  • add tone calibration to release notes prompt by @jdx in #679
  • add opengraph meta tags by @jdx in #685

🔍 Other Changes

📦️ Dependency Updates

New Contributors

Don't miss a new hk release

NewReleases is sending notifications on new releases.