Browse Source

Add lint to tasks

Getty Ritter 1 year ago
parent
commit
9284ec73e8
1 changed files with 7 additions and 0 deletions
  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"):