Skip to content

feat(hook): forward pre-commit args to the pinned CLI - #1

Merged
matiasdaloia merged 1 commit into
mainfrom
feat/forward-precommit-args
Sep 11, 2026
Merged

matiasdaloia merged 1 commit into
mainfrom
feat/forward-precommit-args

Conversation

@matiasdaloia

Copy link
Copy Markdown
Contributor

Summary

  • Forward consumer args from .pre-commit-config.yaml to the pinned Earnie CLI
  • Keep --format hook last so the hook identity cannot be overridden
  • Document the flags and env vars that should be configurable, and the ones that must stay fixed

This ships to consumers on the next wrapper tag (v0.1.1 stays immutable).

Test plan

  • PYTHONPATH=src python -m unittest discover -s tests -v
  • args: ["--project", "billing", "--quiet"] becomes earnie scan staged --project billing --quiet --format hook

Consumers already pass flags through args; keep --format hook last so
the hook identity cannot be overridden.
@matiasdaloia
matiasdaloia merged commit daf183b into main Sep 11, 2026
2 checks passed
@matiasdaloia
matiasdaloia deleted the feat/forward-precommit-args branch September 11, 2026 09:01
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