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,