Spaces:
Runtime error
Runtime error
| """Clean tasks for the project.""" | |
| # %% IMPORTS | |
| from invoke import task | |
| from invoke.context import Context | |
| # %% TASKS | |
| def install(ctx: Context) -> None: | |
| """Clean the install.""" | |
| ctx.run("rm -rf .venv/") | |
| def mypy(ctx: Context) -> None: | |
| """Clean the mypy cache.""" | |
| ctx.run("rm -rf .mypy_cache/") | |
| def ruff(ctx: Context) -> None: | |
| """Clean the ruff cache.""" | |
| ctx.run("rm -rf .ruff_cache/") | |
| def python(ctx: Context) -> None: | |
| """Clean python files and folders.""" | |
| ctx.run("find . -type f -name '*.py[co]' -delete") | |
| ctx.run("find . -type d -name __pycache__ -delete") | |
| def all(_: Context) -> None: | |
| """Run all clean tasks.""" | |
| def reset(_: Context) -> None: | |
| """Reset the project state.""" | |