Skip to content

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

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

Kaemiemi wants to merge 1 commit 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
@Kaemiemi
Kaemiemi force-pushed the codex/debris-optional-topics-hint branch from 728a0b9 to fe2e295 Compare November 15, 2026 17:55
@bittner
bittner requested a balanced review from Copilot November 16, 2026 00:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 insufficient remaining quota. Try requesting a review at a lower effort level.

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

3 participants