mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-17 23:08:32 +02:00
Add invoke task to check type annotations
This commit is contained in:
@@ -56,6 +56,13 @@ def test(context, quiet=False, webtests=False, html_validation=False):
|
|||||||
context.run("pytest " + " ".join(pytest_args), pty=True)
|
context.run("pytest " + " ".join(pytest_args), pty=True)
|
||||||
|
|
||||||
|
|
||||||
|
@task
|
||||||
|
def type_checking(context):
|
||||||
|
"""Run static type checking on the Python code."""
|
||||||
|
output("Running static type checking... ")
|
||||||
|
context.run("mypy .")
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def update_pip_requirements(context):
|
def update_pip_requirements(context):
|
||||||
"""Use pip-tools to update package versions in the requirements files."""
|
"""Use pip-tools to update package versions in the requirements files."""
|
||||||
|
|||||||
Reference in New Issue
Block a user