Repository navigation
chore(deps): update hk to 2.10.0 - #98
Closed
sweepies-ops[bot] wants to merge 1 commit into
Closed
sweepies-ops[bot] wants to merge 1 commit into
sweepies-ops[bot] wants to merge 1 commit into
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | c4d94a3 | Commit Preview URL Branch Preview URL |
Oct 31 2026, 02:21 AM |
43 tasks
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Rust | Oct 31, 2026 2:20a.m. | Review ↗ | |
| JavaScript | Oct 31, 2026 2:20a.m. | Review ↗ | |
| Shell | Oct 31, 2026 2:20a.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
Patchula: v1 Patchula-Branch: cab3515ec7f84108515ec60eba2c9f723e63b26c362387b76182471e096094a8 Patchula-Base: f45661b Patchula-Plan: 8bacbb8d9df1d3ac87c5b6a01496656afe82aa135d6ccd4b8f559427461b0964
sweepies-ops
Bot
force-pushed
the
patchula/hk-2.x
branch
from
October 31, 2026 02:20
35c6ad3 to
c4d94a3
Compare
24 tasks
Contributor
Author
|
Batched by the Count into #115. Tick this update's box there to bring it back. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hk
Source · Compare changes
Release notes: 2.9.0 → 2.10.0 (1 release)
2.10.0
hk 2.10.0 adds a hook-level
timeoutthat fails a hook when it runs too long. It also adds six builtins: trufflehog, osv-scanner, pyright, phpstan, protolint and dotenv-linter.Added
Hook
timeout(#1776, @jdx). Settimeouton a hook to cap how long it can run in total. The limit covers all of the hook's steps, including time spent waiting for the stash lock. When the time runs out, hk stops the running steps the way Ctrl-C does, restores any stashed changes, and fails the hook withpre-commit: timed out after 10s, so the commit or push is blocked.A value is a number followed by a unit (
ms,s,morh). You can combine units, as in"1m30s". hk rejects a bare number, zero or an unknown unit when it loads the config. If you don't settimeout, a hook runs until its steps finish, as before. The setting applies only to whole hooks: there is no per-step or global timeout. As with other hook-level settings, hk ignores it in subproject configs.New builtins (all by @illesnagy1):
trufflehog(#1774) scans text files for secrets. It runs offline with--no-verification, so it does not contact providers to check whether a credential it finds is live. Add atrufflehog:ignorecomment to suppress a finding.osv_scanner(#1782) checks dependency lockfiles and manifests for known vulnerabilities using the OSV database. It covers files such asCargo.lock,package-lock.json,pnpm-lock.yaml,uv.lock,go.modandGemfile.lock, and it readsosv-scanner.tomlfor ignores. The scanner queriesapi.osv.dev, so it needs network access. It only checks and has no fix mode.pyright(#1775) type-checks*.py,*.pyiand*.pywfiles.phpstan(#1778) runs static analysis on*.phpfiles.protolint(#1777) lints and fixes*.protofiles.dotenv_linter(#1779) lints and fixes.env,.env.*and*.envfiles. Fixes don't leave.bakfiles behind.hk initdetects some of these tools from your project files:osv-scanner.toml;pyrightconfig.jsonor a[tool.pyright]table inpyproject.toml;phpstan.neon,phpstan.neon.dist,phpstan.dist.neonor acomposer.jsonthat mentions phpstan; and.protolint.yaml,.protolint.yml,protolint.yamlorprotolint.yml.Changed
pre-pushstdin only got a per-line warning. hk now also prints the expected format once:<local ref> <local SHA> <remote ref> <remote SHA>, with full-length SHAs. Valid lines are still processed.Full Changelog: jdx/hk@v2.9.0...v2.10.0
💚 Sponsor hk
hk is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If hk speeds up your pre-commit loop or makes linting less painful, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep hk fast, free, and independent.