Skip to content

Show optional debris hint when --debris has no topics - #124

Open
Kaemiemi wants to merge 3 commits into
bittner:mainfrom
Kaemiemi:codex/debris-optional-topics-hint
Open

Kaemiemi wants to merge 3 commits into
bittner:mainfrom
Kaemiemi:codex/debris-optional-topics-hint

Conversation

@Kaemiemi

@Kaemiemi Kaemiemi commented Nov 1, 2026

Copy link
Copy Markdown

Fixes #113.

When --debris (or -d) is used without topics, PyClean now points out that additional topics or all can be selected. If optional debris is found in the requested directories, the hint names those topics. Explicit topic selections do not trigger the hint.

I added regression tests for the short and long options, detected and absent optional debris, and explicit topic selection.

Local checks: 146 passed, 1 skipped on Python 3.12; Ruff formatting passed.

This contribution was AI-assisted.

@bittner

bittner commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Please rebase your branch, then all the checks and tests will pass.

@bittner bittner added the usability Affects user experience label Nov 11, 2026
@bittner
bittner self-requested a review November 11, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

usability Affects user experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display hint on optional topics when using --debris

2 participants