From 8fca366ff92d03ee31ee6cc02de5b0358f7063de Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 27 Mar 2023 20:55:59 +0200 Subject: [PATCH] Cleanup more files before provisioning --- tasks.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks.py b/tasks.py index ef2c2be..76890c7 100644 --- a/tasks.py +++ b/tasks.py @@ -130,6 +130,12 @@ def update_code(c: Context, board_id: str) -> None: """Update code on the board.""" with c.cd(SRC_DIR): c.run("find . -name '.DS_Store' -delete", pty=True, echo=True) + c.run( + "find . -name '.pytest_cache' -type d -exec rm -r {} +", pty=True, echo=True + ) + c.run( + "find . -name '__pycache__' -type d -exec rm -r {} +", pty=True, echo=True + ) c.run( f"mpremote connect id:{board_id} cp -r . : + reset", pty=True,