Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ Python bytecode. The following topics are currently covered:
- Packaging (build files and folders)
- Pytest (build files and folders)
- Ruff (ruff cache folder)
- Complexipy (complexity analysis of Python code) – *optional*
- Jupyter (notebook checkpoints) – *optional*
- Mypy (mypy cache folder) – *optional*
- Pyright (pyright app cache folder) – *optional*
Expand Down
2 changes: 1 addition & 1 deletion pyclean/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def parse_arguments():
Parse and handle CLI arguments.
"""
debris_default_topics = ['cache', 'coverage', 'package', 'pytest', 'ruff']
debris_optional_topics = ['jupyter', 'mypy', 'pyright', 'tox']
debris_optional_topics = ['complexipy', 'jupyter', 'mypy', 'pyright', 'tox']
debris_choices = ['all', *debris_default_topics, *debris_optional_topics]
ignore_default_items = [
'.git',
Expand Down
4 changes: 4 additions & 0 deletions pyclean/debris.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
'.cache/**/*',
'.cache/',
],
'complexipy': [
'.complexipy_cache/**/*',
'.complexipy_cache/',
],
'coverage': [
'.coverage',
'coverage.json',
Expand Down
3 changes: 2 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def test_debris_optional_args():
"""
expected_debris_options_help = (
'(may be specified multiple times; '
'optional: all jupyter mypy pyright tox; '
'optional: all complexipy jupyter mypy pyright tox; '
'default: cache coverage package pytest ruff)'
)

Expand All @@ -144,6 +144,7 @@ def test_debris_all():
'package',
'pytest',
'ruff',
'complexipy',
'jupyter',
'mypy',
'pyright',
Expand Down
6 changes: 4 additions & 2 deletions tests/test_debris.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ def test_debris_option(mock_descend, mock_debris, mock_erase, options, scanned_t
'debris_topic',
[
'cache',
'complexipy',
'coverage',
'package',
'pytest',
'jupyter',
'mypy',
'package',
'pyright',
'pytest',
'ruff',
'tox',
],
Expand Down