mirror of
https://github.com/Crocmagnon/plant-badger.git
synced 2025-04-02 00:16:21 +02: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."""
|
"""Update code on the board."""
|
||||||
with c.cd(SRC_DIR):
|
with c.cd(SRC_DIR):
|
||||||
c.run("find . -name '.DS_Store' -delete", pty=True, echo=True)
|
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(
|
c.run(
|
||||||
f"mpremote connect id:{board_id} cp -r . : + reset",
|
f"mpremote connect id:{board_id} cp -r . : + reset",
|
||||||
pty=True,
|
pty=True,
|
||||||
|
|
Loading…
Add table
Reference in a new issue