Skip to content

Commit

Permalink
Merge pull request #3 from vicmattos/master
Browse files Browse the repository at this point in the history
feat: add `.ruff_cache`
  • Loading branch information
thombashi committed Apr 6, 2024
2 parents a014e45 + 95ad41c commit a773e1b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Removing files or directories targets are as follows:
- ``.cache``
- ``.mypy_cache``
- ``.pytest_cache``
- ``.ruff_cache``

You can also remove additional files/directories if the following options are specified:

Expand Down
12 changes: 12 additions & 0 deletions cleanpy/_const.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,18 @@ class Category:
)
),
),
RemoveTarget(
category=Category.CACHE,
name="ruff",
target_type=EntryType.DIR,
regexp=re.compile(
"|".join(
[
r"^\.ruff_cache$",
]
)
),
),
RemoveTarget(
category=Category.CACHE,
name="temporary files",
Expand Down

0 comments on commit a773e1b

Please sign in to comment.