瀏覽代碼

Add lint to tasks

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

+ 7 - 0
tasks.py

@@ -77,6 +77,13 @@ def tc(c):
         "MYPYPATH=$(pwd)/stubs poetry run mypy --check-untyped-defs lc/*.py tests/*.py scripts/*.py"
     )
 
+@task
+def lint(c):
+    """Typecheck with mypy"""
+    c.run(
+        "poetry run flake8"
+    )
+
 
 @task
 def uwsgi(c, sock="lc.sock"):