Browse Source

Add invoke task to check type annotations

merge-requests/135/head
Deimos 4 years ago
parent
commit
037176524b
  1. 7
      tildes/tasks.py

7
tildes/tasks.py

@ -56,6 +56,13 @@ def test(context, quiet=False, webtests=False, html_validation=False):
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
def update_pip_requirements(context):
"""Use pip-tools to update package versions in the requirements files."""

Loading…
Cancel
Save