Skip to content

Commit 01c12cd

Browse files
committed
Enhance cleanup script to remove version control backup files and fix coverage file deletion command
1 parent c115cb6 commit 01c12cd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/clean_up.bat

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,19 @@ del /s /q *.pyc 1>nul 2>&1
2525
del /s /q *.pyo 1>nul 2>&1
2626
FOR /d /r %%d IN ("__pycache__") DO @IF EXIST "%%d" rd /s /q "%%d"
2727

28+
@REM Removing version control backup files
29+
del /s /q *~ 1>nul 2>&1
30+
del /s /q *.bak 1>nul 2>&1
31+
del /s /q *.orig 1>nul 2>&1
32+
2833
@REM Removing localization template files
2934
if exist doc\locale\pot ( rmdir /s /q doc\locale\pot )
3035

3136
@REM Removing files/directories related to Coverage and pytest
3237
if exist .coverage ( del /q .coverage )
3338
if exist coverage.xml ( del /q coverage.xml )
3439
if exist htmlcov ( rmdir /s /q htmlcov )
35-
del /q .coverage.* 1>nul 2>&1
40+
del /s /q .coverage.* 1>nul 2>&1
3641
if exist sitecustomize.py ( del /q sitecustomize.py )
3742
if exist .pytest_cache ( rmdir /s /q .pytest_cache )
3843

0 commit comments

Comments
 (0)