Types
Types CLI.
Functions⚓︎
mypy ⚓︎
mypy(ctx)
Run mypy.
Source code in calcipy/tasks/types.py
@task()
def mypy(ctx: Context) -> None:
"""Run mypy."""
run(ctx, f'{python_m()} mypy')
pyright ⚓︎
pyright(ctx)
Run pyright using the config in pyproject.toml.
Source code in calcipy/tasks/types.py
@task()
def pyright(ctx: Context) -> None:
"""Run pyright using the config in `pyproject.toml`."""
check_installed(ctx, executable='pyright', message=PYRIGHT_MESSAGE)
run(ctx, 'pyright')
ty ⚓︎
ty(ctx)
Run ty type checker.
Source code in calcipy/tasks/types.py
@task()
def ty(ctx: Context) -> None:
"""Run ty type checker."""
pkg = read_package_name()
run(ctx, f'ty check {pkg} tests')