Skip to content

Commit 539fe04

Browse files
committed
lint and test
1 parent 8e92eaf commit 539fe04

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tasks.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,15 @@ def check(ctx, fmt=False, sort=False, diff=False): # pylint: disable=redefined-
5252
cmd_args.append("&")
5353
cmd_args.extend(sort_args)
5454
ctx.run(" ".join(cmd_args))
55+
56+
57+
@invoke.task
58+
def lint(ctx):
59+
"""Run linter."""
60+
ctx.run(" ".join(["pylint", "app"]))
61+
62+
63+
@invoke.task
64+
def test(ctx):
65+
"""Run pytest tests."""
66+
ctx.run(" ".join(["pytest", "-v"]))

0 commit comments

Comments
 (0)