mirror of
https://github.com/daylinmorgan/swydd.git
synced 2024-11-23 15:20:43 -06:00
no need to seperate function
This commit is contained in:
parent
77eb160da5
commit
21f6225520
1 changed files with 3 additions and 7 deletions
10
tasks.py
10
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()
|
||||
|
|
Loading…
Reference in a new issue