瀏覽代碼

Add tc target to tasks

Getty Ritter 5 年之前
父節點
當前提交
c73be2b310
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      tasks.py

+ 5 - 0
tasks.py

@@ -41,3 +41,8 @@ def fmt(c):
 def populate(c):
     """Populate the test database with fake-ish data"""
     c.run("PYTHONPATH=$(pwd) poetry run python3 ./scripts/populate.py")
+
+@task
+def tc(c):
+    """Populate the test database with fake-ish data"""
+    c.run("MYPYPATH=$(pwd)/stubs poetry run mypy lc/*.py tests/*.py scripts/*.py")