Skip to content

Commit aea6bbc

Browse files
author
Jakob Guldberg Aaes
committed
feat: add complexipy debris topic
1 parent 3e57a87 commit aea6bbc

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ Python bytecode. The following topics are currently covered:
201201
- Packaging (build files and folders)
202202
- Pytest (build files and folders)
203203
- Ruff (ruff cache folder)
204+
- Complexipy (complexity analysis of python code) – *optional*
204205
- Jupyter (notebook checkpoints) – *optional*
205206
- Mypy (mypy cache folder) – *optional*
206207
- Pyright (pyright app cache folder) – *optional*

pyclean/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def parse_arguments():
1919
Parse and handle CLI arguments.
2020
"""
2121
debris_default_topics = ['cache', 'coverage', 'package', 'pytest', 'ruff']
22-
debris_optional_topics = ['jupyter', 'mypy', 'pyright', 'tox']
22+
debris_optional_topics = ['complexipy', 'jupyter', 'mypy', 'pyright', 'tox']
2323
debris_choices = ['all', *debris_default_topics, *debris_optional_topics]
2424
ignore_default_items = [
2525
'.git',

pyclean/debris.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
'.cache/**/*',
2020
'.cache/',
2121
],
22+
'complexipy': [
23+
'.complexipy_cache/**/*',
24+
'.complexipy_cache/',
25+
],
2226
'coverage': [
2327
'.coverage',
2428
'coverage.json',

tests/test_cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def test_debris_optional_args():
121121
"""
122122
expected_debris_options_help = (
123123
'(may be specified multiple times; '
124-
'optional: all jupyter mypy pyright tox; '
124+
'optional: all complexipy jupyter mypy pyright tox; '
125125
'default: cache coverage package pytest ruff)'
126126
)
127127

@@ -144,6 +144,7 @@ def test_debris_all():
144144
'package',
145145
'pytest',
146146
'ruff',
147+
'complexipy',
147148
'jupyter',
148149
'mypy',
149150
'pyright',

tests/test_debris.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ def test_debris_option(mock_descend, mock_debris, mock_erase, options, scanned_t
5353
'debris_topic',
5454
[
5555
'cache',
56+
'complexipy',
5657
'coverage',
57-
'package',
58-
'pytest',
5958
'jupyter',
6059
'mypy',
60+
'package',
61+
'pyright',
62+
'pytest',
6163
'ruff',
6264
'tox',
6365
],

0 commit comments

Comments
 (0)