Skip to content

fix: drop undeclared click import and release 0.14.1 - #69

Merged
NaNIsaac merged 1 commit into
mainfrom
fix/click-import-0.14.1
Nov 16, 2026
Merged

NaNIsaac merged 1 commit into
mainfrom
fix/click-import-0.14.1

Conversation

@NaNIsaac

@NaNIsaac NaNIsaac commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Remove the undeclared from click.core import ParameterSource import in src/codigest/commands/term.py and compare getattr(ctx.get_parameter_source("count"), "name", None) == "DEFAULT", which works with both typer 0.20 (click enum) and typer 0.29+ (typer._click vendored enum) without declaring click.
  • Remove the remaining import click usages in site/scripts/check_reference.py and docs/cli_matrix.py by inspecting commands and param_type_name attributes directly.
  • Add a regression test in tests/test_term_list.py verifying cdg term --list without -n lists all entries.
  • Add a fresh-resolve CLI smoke check (uv run --python 3.15 --no-project --with .) in .github/workflows/ci.yml running cdg --version and cdg term --list so missing undeclared dependencies fail CI.
  • Upgrade typer in uv.lock from 0.20.0 to 0.29.1 (full suite and reference check pass under typer 0.29.1).
  • Bump Python, Rust, and release install snippets to 0.14.1.

Verification

  • uvx ruff@0.17.1 check and uvx ruff@0.17.1 format --check
  • uv run python site/scripts/check_reference.py (reference matches the CLI: 21 commands, 116 options)
  • uv run --python 3.15 --no-project --with . cdg --version (codigest 0.14.1) and cdg term --list
  • pytest -q under typer 0.29.1: 318 passed, 21 skipped
  • pytest --with pywinpty tests/test_term_list.py tests/test_hook_terminal.py -q: 17 passed, 9 skipped
  • cargo fmt --check, cargo clippy --all-targets -- -D warnings, and CODIGEST_PARITY=1 cargo test --no-fail-fast -- --include-ignored: 239 passed, 0 failed

Part of: CDG-RELEASE

@NaNIsaac
NaNIsaac force-pushed the fix/click-import-0.14.1 branch from 90547dc to 9c2764b Compare November 16, 2026 08:37
@NaNIsaac
NaNIsaac merged commit 42721a2 into main Nov 16, 2026
11 checks passed
@NaNIsaac
NaNIsaac deleted the fix/click-import-0.14.1 branch November 16, 2026 09:17
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