Skip to content

Commit 572b9fa

Browse files
committed
chore(build): add clean target to justfile
- Add clean target to remove temporary files and build artifacts - Removes coverage reports, pytest cache, mkdocs site, and Python bytecode - Improves developer workflow by providing easy cleanup command
1 parent 2dbb31b commit 572b9fa

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Unreleased
44

5+
### 🛠️ Developer Experience
6+
- **Cleanup command**: Added `just clean` target to remove temporary files and build artifacts
7+
58
## 4.4.2 (2025-09-23)
69

710
### 🐛 Bug Fixes

justfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,19 @@ VENV_DIRNAME := ".venv"
4242
# serve docs during development
4343
@serve-docs: check_uv
4444
uvx --with markdown-callouts --with mkdocs-material mkdocs serve
45+
46+
# clean up temporary files and directories
47+
@clean:
48+
echo "Cleaning up temporary files and directories..."
49+
rm -rf htmlcov/
50+
rm -rf .coverage
51+
rm -rf .pytest_cache/
52+
rm -rf site/
53+
rm -rf dist/
54+
rm -rf build/
55+
rm -rf .tox/
56+
rm -rf src/*.egg-info
57+
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
58+
find . -type f -name "*.pyc" -delete 2>/dev/null || true
59+
find . -type f -name "*.pyo" -delete 2>/dev/null || true
60+
echo "Clean up complete!"

0 commit comments

Comments
 (0)