mirror of
https://github.com/daylinmorgan/swydd.git
synced 2024-11-07 01:33:14 -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/"
|
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()
|
||||||
|
|
Loading…
Reference in a new issue