ghub/tasks.py

21 lines
266 B
Python
Raw Normal View History

2021-11-04 02:26:39 +00:00
from invoke import task
2021-11-04 05:01:35 +00:00
from cli import main
@task
def run(c):
main()
2021-11-04 02:26:39 +00:00
@task
def test(c):
2021-11-04 05:01:35 +00:00
c.run("pytest *_tests.py")
2021-11-04 02:26:39 +00:00
@task
def black(c):
"""
Runs The uncompromising Python code formatter on specific python files.
"""
c.run("black *.py")