Skip to content

Commit 50f1fc9

Browse files
committed
ci: enhance clean
Signed-off-by: thxCode <[email protected]>
1 parent 972c196 commit 50f1fc9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@ install: deps
2727
fi
2828
@echo "--- $@ ---"
2929

30+
CLEAN_UNTRACKED ?= false
3031
clean:
3132
@echo "+++ $@ +++"
3233
uv run pyclean -v $(SRCDIR)
3334
rm -rf dist
35+
if [[ "$(CLEAN_UNTRACKED)" == "true" ]]; then \
36+
git clean -f .; \
37+
fi
3438
@echo "--- $@ ---"
3539

3640
LINT_DIRTY ?= false

0 commit comments

Comments
 (0)