Spaces:
Running
Running
"""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("mypy *.py") | |
def code(ctx: Context) -> None: | |
"""Check the codes with ruff check.""" | |
ctx.run("ruff check *.py") | |
def format(ctx: Context) -> None: | |
"""Check the formats with ruff format.""" | |
ctx.run("ruff format --check *.py") | |
def all(_: Context) -> None: | |
"""Run all check tasks.""" | |