Skip to content

Commit d76b0e0

Browse files
committed
Add cleanup utility and integrate with VSCode tasks; remove legacy batch scripts
1 parent 40c565a commit d76b0e0

File tree

7 files changed

+430
-164
lines changed

7 files changed

+430
-164
lines changed

.vscode/tasks.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,13 @@
291291
{
292292
"label": "🧹 Clean Up",
293293
"type": "shell",
294-
"command": "cmd",
294+
"command": "${command:python.interpreterPath}",
295295
"args": [
296-
"/c",
297-
"clean_up.bat",
296+
"-m",
297+
"guidata.utils.cleanup"
298298
],
299299
"options": {
300-
"cwd": "scripts",
300+
"cwd": "${workspaceFolder}",
301301
},
302302
"group": {
303303
"kind": "build",

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828

2929
* [Issue #94](https://github.com/PlotPyStack/guidata/issues/94) - Make dataset description text selectable
3030

31+
* New `guidata.utils.cleanup` utility:
32+
* Added a comprehensive repository cleanup utility similar to `genreqs` and `securebuild`
33+
* Provides both programmatic API (`from guidata.utils.cleanup import run_cleanup`) and command-line interface (`python -m guidata.utils.cleanup`)
34+
* Automatically detects repository type and cleans Python cache files, build artifacts, temporary files, coverage data, backup files, and empty directories
35+
* Features comprehensive Google-style docstrings and full typing annotations
36+
* Cross-platform compatible with proper logging and error handling
37+
* Can be integrated into project workflows via VSCode tasks or build scripts
38+
3139
* New validation modes for `DataItem` objects:
3240
* Validation modes allow you to control how `DataItem` values are validated when they are set.
3341
* `ValidationMode.DISABLED`: no validation is performed (default behavior, for backward compatibility)

0 commit comments

Comments
 (0)