Skip to content

chore: derive CliRunner kwargs from the Click signature - #76

Merged
JacobPEvans-personal merged 1 commit into
mainfrom
chore/post-merge-cleanup
Aug 5, 2026
Merged

chore: derive CliRunner kwargs from the Click signature#76
JacobPEvans-personal merged 1 commit into
mainfrom
chore/post-merge-cleanup

Conversation

@JacobPEvans-personal

Copy link
Copy Markdown
Contributor

What

  • tests/conftest.py: cli_runner() passes mix_stderr=False only when the installed Click's CliRunner.__init__ accepts the parameter, decided with inspect.signature. This removes the # type: ignore[call-arg] and the runtime try/except TypeError probe.
  • .pre-commit-config.yaml: the header comment names the local gate job in .github/workflows/ci.yml as the CI consumer of this hook set. The previous text named the _python-ci.yml reusable workflow, which this repository no longer calls.

Verification

  • ruff check . and ruff format --check . — clean
  • pyright — 0 errors, 0 warnings
  • pytest — 1012 passed, 245 skipped
  • pre-commit run --all-files — all hooks pass

🤖 Generated with Claude Code

https://claude.ai/code/session_01XKKV4NY5UNfrgXxXv83jvT

- tests/conftest.py: pass mix_stderr only when the installed Click's
  CliRunner.__init__ still accepts it, checked via inspect.signature.
  This removes the type suppression and the try/except probe.
- .pre-commit-config.yaml: the header now names the local gate job in
  .github/workflows/ci.yml as the CI consumer of this hook set; the
  _python-ci.yml reusable workflow is no longer referenced.

Assisted-by: Claude:claude-fable-5
Claude-Session: https://claude.ai/code/session_01XKKV4NY5UNfrgXxXv83jvT
Copilot AI lite review requested due to automatic review settings August 5, 2026 13:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@JacobPEvans-personal
JacobPEvans-personal merged commit 2e47882 into main Aug 5, 2026
11 checks passed
@JacobPEvans-personal
JacobPEvans-personal deleted the chore/post-merge-cleanup branch August 5, 2026 13:09
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.

2 participants