Skip to content

feat: detect commands with path prefixes and wrapper runners#35

Merged
ppgranger merged 3 commits intomainfrom
fix/path-prefix-and-wrapper-detection
Apr 12, 2026
Merged

feat: detect commands with path prefixes and wrapper runners#35
ppgranger merged 3 commits intomainfrom
fix/path-prefix-and-wrapper-detection

Conversation

@ppgranger
Copy link
Copy Markdown
Owner

Add path normalization in hook_pretool.py to detect commands invoked via full paths (.venv/bin/pip, /usr/bin/git, ./node_modules/.bin/jest).

Add hook_patterns for common wrapper runners: npx, poetry run, uv run, pipx run, bundle exec. Add python -m pip install support.

Bump version to 2.3.0.

What

Why

How

Checklist

  • ruff check . passes
  • ruff format --check . passes
  • python3 -m pytest tests/ -v passes (all 207+ tests)
  • New code has tests (if applicable)
  • No secrets or credentials in the diff

Add path normalization in hook_pretool.py to detect commands invoked via
full paths (.venv/bin/pip, /usr/bin/git, ./node_modules/.bin/jest).

Add hook_patterns for common wrapper runners: npx, poetry run, uv run,
pipx run, bundle exec. Add python -m pip install support.

Bump version to 2.3.0.
@ppgranger ppgranger merged commit 55d3b0d into main Apr 12, 2026
5 checks passed
@ppgranger ppgranger deleted the fix/path-prefix-and-wrapper-detection branch April 12, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant