From 21f6225520e6c43c8e247273396e79b6303da0ad Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sun, 20 Oct 2024 13:05:37 -0500 Subject: [PATCH] no need to seperate function --- tasks.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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()