BTHLABS-66: Prepping for public release: Take one

This commit is contained in:
2025-11-18 20:47:07 +01:00
parent 16a9c73624
commit 20fa33abeb
84 changed files with 839 additions and 631 deletions

View File

@@ -3,7 +3,7 @@
from __future__ import annotations
from invoke import task
from invoke import Context, task
from invoke.exceptions import UnexpectedExit
from hotpocket_workspace_tools import get_workspace_mode
@@ -12,18 +12,18 @@ WORKSPACE_MODE = get_workspace_mode()
@task
def clean(ctx):
def clean(ctx: Context):
print('NOOP')
@task
def test(ctx):
def test(ctx: Context):
# ctx.run('pytest -v --disable-warnings')
print('NOOP')
@task
def flake8(ctx):
def flake8(ctx: Context):
ctx.run('flake8')
@@ -45,7 +45,7 @@ def isort(ctx, check=False, diff=False):
@task
def lint(ctx):
def lint(ctx: Context):
ihazsuccess = True
try:
@@ -63,17 +63,17 @@ def lint(ctx):
@task
def typecheck(ctx):
def typecheck(ctx: Context):
ctx.run('mypy .')
@task
def django_shell(ctx):
def django_shell(ctx: Context):
raise NotImplementedError()
@task
def ci(ctx):
def ci(ctx: Context):
ihazsuccess = True
ci_tasks = [test, lint, typecheck]
@@ -88,10 +88,10 @@ def ci(ctx):
@task
def setup(ctx):
def setup(ctx: Context):
print('NOOP')
@task
def start_web(ctx):
def start_web(ctx: Context):
raise NotImplementedError()