Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ruff debris when specified #71

Merged
merged 1 commit into from
Sep 19, 2023
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
2 changes: 1 addition & 1 deletion pyclean/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def parse_arguments():
Parse and handle CLI arguments
"""
debris_default_topics = ['cache', 'coverage', 'package', 'pytest']
debris_optional_topics = ['jupyter', 'mypy', 'tox']
debris_optional_topics = ['jupyter', 'mypy', 'ruff', 'tox']
debris_choices = ['all'] + debris_default_topics + debris_optional_topics
ignore_default_items = [
'.git',
Expand Down
4 changes: 4 additions & 0 deletions pyclean/modern.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
'.pytest_cache/',
'pytestdebug.log',
],
'ruff': [
'.ruff_cache/**/*',
'.ruff_cache/',
],
'tox': [
'.tox/**/*',
'.tox/',
Expand Down
1 change: 1 addition & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def test_debris_all():
'pytest',
'jupyter',
'mypy',
'ruff',
'tox',
]

Expand Down
1 change: 1 addition & 0 deletions tests/test_modern.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ def test_erase_option(mock_descend, mock_debris, mock_erase):
'pytest',
'jupyter',
'mypy',
'ruff',
'tox',
],
)
Expand Down
Loading