diff --git a/tasks.py b/tasks.py index a7a1f77..6e0a785 100755 --- a/tasks.py +++ b/tasks.py @@ -32,7 +32,9 @@ def check(skip_mypy: bool = False): sub < "uv run mypy src/" -def copy_source(): +@task +def docs(): + """build docs""" tags = get < "git tag --list" versions = [line for line in tags.splitlines() if line.startswith("v")] for tag in versions: @@ -42,10 +44,4 @@ def copy_source(): (path / "docs/swydd.py") < (path / "src/swydd/__init__.py") -@task -def docs(): - """build docs""" - copy_source() - - cli()