From 58763b4eabb20d6c33e39fa0d29d16ccb96d5b8a Mon Sep 17 00:00:00 2001 From: Drew Bednar Date: Sun, 10 Dec 2023 09:27:00 -0500 Subject: [PATCH] Adding basic tasks.py file --- tasks.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tasks.py diff --git a/tasks.py b/tasks.py new file mode 100644 index 0000000..a12b43d --- /dev/null +++ b/tasks.py @@ -0,0 +1,27 @@ +from invoke import task + + +@task +def update_deps(c): + """Updates depenencies""" + c.run("pip-compile requirements.in", pty=True) + c.run("pip-compile dev-requirements.in", pty=True) + + +@task +def sync_deps(c): + """Syncs local dependencies""" + c.run("pip-sync requirements.txt dev-requirements.txt") + + +@task +def lint(c): + """Runs all linters against the project.""" + c.run("./scripts/run_linters.sh", pty=True) + + +@task +def delint(c): + """Applies automated linters to project""" + c.run("isort ./speech_collect ./tests ./tasks.py", pty=True) + c.run("black ./speech_collect ./tests ./tasks.py", pty=True)