This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
carboncopy/tasks.py
Marc Cataford 02a7b2d5d8
Initial upload (#1)
* 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
2020-01-05 14:46:10 -05:00

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)