Spaces:
Runtime error
Runtime error
| """Format tasks for the project.""" | |
| # %% IMPORTS | |
| from invoke import task | |
| from invoke.context import Context | |
| # %% TASKS | |
| def imports(ctx: Context) -> None: | |
| """Format code imports with ruff.""" | |
| ctx.run(".venv/bin/ruff check --select I --fix *.py") | |
| def sources(ctx: Context) -> None: | |
| """Format code sources with ruff.""" | |
| ctx.run(".venv/bin/ruff format *.py") | |
| def all(_: Context) -> None: | |
| """Run all format tasks.""" | |