diff --git a/README.rst b/README.rst index 75c60e6..7446240 100644 --- a/README.rst +++ b/README.rst @@ -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* diff --git a/pyclean/cli.py b/pyclean/cli.py index 206a5fe..954daee 100644 --- a/pyclean/cli.py +++ b/pyclean/cli.py @@ -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', diff --git a/pyclean/debris.py b/pyclean/debris.py index 413d6c5..5759eb6 100644 --- a/pyclean/debris.py +++ b/pyclean/debris.py @@ -19,6 +19,10 @@ '.cache/**/*', '.cache/', ], + 'complexipy': [ + '.complexipy_cache/**/*', + '.complexipy_cache/', + ], 'coverage': [ '.coverage', 'coverage.json', diff --git a/tests/test_cli.py b/tests/test_cli.py index af303f7..b6c39fa 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -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)' ) @@ -144,6 +144,7 @@ def test_debris_all(): 'package', 'pytest', 'ruff', + 'complexipy', 'jupyter', 'mypy', 'pyright', diff --git a/tests/test_debris.py b/tests/test_debris.py index 0840cd3..9309891 100644 --- a/tests/test_debris.py +++ b/tests/test_debris.py @@ -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', ],