Spaces:
Runtime error
Runtime error
| """Check tasks for the project.""" | |
| # %% IMPORTS | |
| from invoke import task | |
| from invoke.context import Context | |
| # %% TASKS | |
| def type(ctx: Context) -> None: | |
| """Check the types with mypy.""" | |
| ctx.run(".venv/bin/mypy *.py") | |
| def code(ctx: Context) -> None: | |
| """Check the codes with ruff check.""" | |
| ctx.run(".venv/bin/ruff check *.py") | |
| def format(ctx: Context) -> None: | |
| """Check the formats with ruff format.""" | |
| ctx.run(".venv/bin/ruff format --check *.py") | |
| def all(_: Context) -> None: | |
| """Run all check tasks.""" | |