Skip to content

Conversation

@jakob1379
Copy link
Contributor

closes:
#114

adds complexipy to depris

tests pass

@jakob1379 jakob1379 marked this pull request as ready for review January 5, 2026 09:32
@bittner bittner requested a review from Copilot January 7, 2026 18:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds support for cleaning up complexipy cache files to the pyclean debris removal feature. Complexipy is a Python code complexity analyzer that creates a .complexipy_cache/ directory, which this change enables pyclean to detect and remove.

Key changes:

  • Added 'complexipy' as a new optional debris topic alongside existing tools like mypy, jupyter, and tox
  • Updated CLI help text and tests to reflect the new option

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
pyclean/debris.py Adds complexipy patterns to DEBRIS_TOPICS dictionary to enable cleaning .complexipy_cache/ directories
pyclean/cli.py Adds 'complexipy' to the optional debris topics list for CLI argument parsing
tests/test_cli.py Updates help text assertion and test expectations to include complexipy in the debris options
tests/test_debris.py Adds complexipy to parametrized tests to ensure cleanup functionality works correctly

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Owner

@bittner bittner left a comment

Choose a reason for hiding this comment

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

Copilot found a few nitpicks, and it's right about it!

Please, fix those stylistics issues and add Complexipy to the list of optional debris topics in the README.

Also, please rebase your feature branch atop main. I removed Codacy from the GHA setup, it's a great nuisance. This will make the test jobs succeed in the pipeline.

@jakob1379 jakob1379 force-pushed the feat/complexipy branch 2 times, most recently from f599d73 to ff2d3dd Compare January 8, 2026 09:42
@bittner bittner self-requested a review January 8, 2026 12:48
Copy link
Owner

@bittner bittner left a comment

Choose a reason for hiding this comment

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

Perfect! This looks good now.

The only thing missing is to add Complexipy to the list of optional debris topics in the README. Can you do that?

I'll go ahead and merge the PR, afterwards.

Copy link
Owner

@bittner bittner left a comment

Choose a reason for hiding this comment

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

Sorry for nit-picking. Python is a proper noun in this case.

Co-authored-by: Peter Bittner <[email protected]>
@jakob1379
Copy link
Contributor Author

no need to be sorry, I really appreciate you taking care of this! :D


On that note adding codespell etc to the pre-commits might help remove a lot of these small annoyances :)

@bittner bittner merged commit 332aaf8 into bittner:main Jan 9, 2026
34 checks passed
@jakob1379 jakob1379 deleted the feat/complexipy branch January 10, 2026 07:34
@bittner
Copy link
Owner

bittner commented Jan 10, 2026

Thank you for your contribution! 🥇

The feature is included in version 3.5.0, which was released a moment ago. Enjoy! 🍾

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