no need to seperate function

This commit is contained in:
Daylin Morgan 2024-10-20 13:05:37 -05:00
parent 77eb160da5
commit 21f6225520
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

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