mirror of
https://github.com/Crocmagnon/plant-badger.git
synced 2024-12-21 15:01:48 +01:00
Cleanup more files before provisioning
This commit is contained in:
parent
03dddba8d5
commit
8fca366ff9
1 changed files with 6 additions and 0 deletions
6
tasks.py
6
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,
|
||||
|
|
Loading…
Reference in a new issue