|
@ -79,6 +79,19 @@ 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 shell(context): |
|
|
|
|
|
"""Start an IPython shell inside the app environment. |
|
|
|
|
|
|
|
|
|
|
|
Will use the settings in production.ini if that file exists, otherwise will fall |
|
|
|
|
|
back to using development.ini. |
|
|
|
|
|
""" |
|
|
|
|
|
if Path("production.ini").exists(): |
|
|
|
|
|
context.run("pshell production.ini", pty=True) |
|
|
|
|
|
else: |
|
|
|
|
|
context.run("pshell development.ini", pty=True) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@task |
|
|
@task |
|
|
def type_checking(context): |
|
|
def type_checking(context): |
|
|
"""Run static type checking on the Python code.""" |
|
|
"""Run static type checking on the Python code.""" |
|
|