Skip to content

Commit 410f297

Browse files
committed
build: Add clean task to Poe
1 parent 9722117 commit 410f297

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ shell = """
7676
ruff format .
7777
"""
7878

79+
[[tool.poe.tasks.clean]]
80+
help = "Clean up the project working tree (i.e. remove __pycache__ folders)"
81+
shell = """
82+
find . -name "__pycache__" | xargs rm -rf
83+
find . -name "*.pyc" -delete
84+
rm -rf .mypy_cache .pytest_cache .ruff_cache dist/ .coverage.*
85+
"""
86+
7987
[tool.coverage.run]
8088
branch = true
8189
omit = [

0 commit comments

Comments
 (0)