Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lint and test
  • Loading branch information
Kilo59 committed Mar 29, 2020
commit 539fe0470ec44da757a822045d3370d690c54259
12 changes: 12 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,15 @@ def check(ctx, fmt=False, sort=False, diff=False): # pylint: disable=redefined-
cmd_args.append("&")
cmd_args.extend(sort_args)
ctx.run(" ".join(cmd_args))


@invoke.task
def lint(ctx):
"""Run linter."""
ctx.run(" ".join(["pylint", "app"]))


@invoke.task
def test(ctx):
"""Run pytest tests."""
ctx.run(" ".join(["pytest", "-v"]))