02a7b2d5d8
* feat: minimal working version * chore: clean swap files * chore: amend gitignore to include swaps * chore: typecheck * wip: ignore git, support dir * wip: ignores, directory handling * wip: add prompting, better path management * refactor: centralize printing * wip: handle jsondecodeerror * docs: README * chore: add inquirer to dependencies * wip: error handling when not in git
16 lines
229 B
Python
16 lines
229 B
Python
from invoke import Collection, task
|
|
|
|
|
|
@task
|
|
def format_all(ctx):
|
|
ctx.run("black src *.py")
|
|
|
|
|
|
@task
|
|
def typecheck(ctx):
|
|
ctx.run("mypy src")
|
|
|
|
|
|
ns = Collection()
|
|
ns.add_task(format_all, name="format")
|
|
ns.add_task(typecheck)
|