Mercurial > code > home > repos > rdfdb
view tasks.py @ 128:bf5353908f3c
when SyncedGraph tries to clear the graph for a resync, don't attempt to send that patch out
author | drewp@bigasterisk.com |
---|---|
date | Sat, 27 May 2023 17:55:20 -0700 |
parents | a4a060241c73 |
children |
line wrap: on
line source
from invoke import task import sys sys.path.append('/my/proj/release') from release import local_release @task def release(ctx): local_release(ctx) @task def test(ctx): test_forever(ctx, forever=False) @task def test_forever(ctx, forever=True): watchdir = 'rdfdb' testdir = 'rdfdb' ctx.run(f'pdm run pytest {testdir}', pty=True, warn=True) # ptw doesn't do an initial run if forever: ctx.run(f'pdm run ptw {watchdir} {testdir}', pty=True) @task def demo(ctx): ctx.run('PYTHONPATH=. pdm run uvicorn --reload --port 8082 demo:app', pty=True) @task def pydeps(ctx): ctx.run("pdm run pydeps --reverse --max-bacon=2 --rankdir BT --cluster ./rdfdb")