Parcourir la source

Add lint to tasks

Getty Ritter il y a 4 ans
Parent
commit
9284ec73e8
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  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"):