Skip to content

refactor(cli): extract --force-missing-dependencies into its own option group#549

Merged
michael-richey merged 1 commit into
mainfrom
hamr/force-missing-deps-1-option-extraction
Apr 28, 2026
Merged

refactor(cli): extract --force-missing-dependencies into its own option group#549
michael-richey merged 1 commit into
mainfrom
hamr/force-missing-deps-1-option-extraction

Conversation

@michael-richey
Copy link
Copy Markdown
Collaborator

@michael-richey michael-richey commented Apr 27, 2026

Summary

  • Extracts --force-missing-dependencies from _sync_options into its own _force_missing_dependencies_options decorator in options.py
  • Wires the new decorator into import, sync, and migrate commands (import is a new addition)
  • Adds or False guard in configuration.py so force_missing_dependencies is always a bool
  • Adds CLI acceptance tests confirming all three commands accept the flag

This is a purely mechanical refactor — no behavior changes. Independently mergeable.

Test plan

  • pytest tests/unit/test_force_missing_dependencies_cli.py -v — 3 tests, all green
  • pytest tests/unit/ -v — full unit suite regression, no failures
  • tox -e ruff,black — lint clean

🤖 Generated with Claude Code

…on group

Move --force-missing-dependencies out of _sync_options into a dedicated
_force_missing_dependencies_options list so the flag can be independently
wired to any command. Wire it to import, sync, and migrate commands.
Add or-False guard on kwargs.get to ensure bool type is always returned.
Add CLI acceptance tests for all three commands.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@michael-richey michael-richey merged commit 17dc752 into main Apr 28, 2026
21 of 22 checks passed
@michael-richey michael-richey deleted the hamr/force-missing-deps-1-option-extraction branch April 28, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants