• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nvidia-holoscan / holoscan-cli / 31792063975
79%
main: 79%

Build:
Build:
LAST BUILD BRANCH: pull-request/222
DEFAULT BRANCH: main
Ran 14 Aug 2026 10:24AM UTC
Jobs 1
Files 36
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Aug 2026 10:22AM UTC coverage: 78.535% (-0.06%) from 78.599%
31792063975

Pull #221

github

wyli
fix: resolve pre-commit with the child-process PATH

`handle_lint` prepends `~/.local/bin` to the PATH it hands to the subprocess
when the CLI is not running inside a virtualenv, but `_pre_commit_command`
called `shutil.which` without that PATH, so resolution and execution consulted
different search paths.

A pipx- or `--user`-installed pre-commit lives only in that directory and is
not importable by the CLI's interpreter. It was therefore reported as missing,
triggering an unnecessary reinstall, or a fatal pip error in an environment
that has no pip -- while a perfectly usable executable was already on the PATH
the run would use. `--dryrun` also printed `python -m pre_commit`, a module
that does not exist there.

Thread the child-process PATH through `_pre_commit_command` at both the
resolution and post-install checks, and at the hook-prefetch call in
`_install_lint_deps`.

Reported by CodeRabbit on PR #221.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Pull Request #221: fix: preserve source-project context

23 of 36 new or added lines in 5 files covered. (63.89%)

1 existing line in 1 file now uncovered.

3260 of 4151 relevant lines covered (78.54%)

0.79 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
60.31
-1.43% src/holoscan_cli/commands/lint.py

Coverage Regressions

Lines Coverage ∆ File
1
60.31
-1.43% src/holoscan_cli/commands/lint.py
Jobs
ID Job ID Ran Files Coverage
1 31792063975.1 14 Aug 2026 10:24AM UTC 36
78.54
GitHub Action Run
Source Files on build 31792063975
  • Tree
  • List 36
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31792063975
  • Pull Request #221
  • PR Base - main (#30911712554)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc