Cleanup more files before provisioning

This commit is contained in:
Gabriel Augendre 2023-03-27 20:55:59 +02:00
parent 03dddba8d5
commit 8fca366ff9

View file

@ -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,