Skip to content

Commit 4ce4bab

Browse files
committed
🧰 build: prepare config on the pyproject file.
1 parent 24d3e53 commit 4ce4bab

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,13 @@ omit = [
9191
"src/ddeutil/workflow/__about__.py",
9292
"src/ddeutil/workflow/__cron.py",
9393
"src/ddeutil/workflow/__main__.py",
94+
"src/ddeutil/workflow/cli.py",
9495
"src/ddeutil/workflow/api/__init__.py",
9596
"src/ddeutil/workflow/api/logs.py",
96-
"src/ddeutil/workflow/api/utils.py",
9797
"src/ddeutil/workflow/api/routes/__init__.py",
9898
"src/ddeutil/workflow/api/routes/job.py",
9999
"src/ddeutil/workflow/api/routes/logs.py",
100-
"src/ddeutil/workflow/api/routes/schedules.py",
101100
"src/ddeutil/workflow/api/routes/workflows.py",
102-
"app.py",
103101
]
104102

105103
[tool.coverage.report]

src/ddeutil/workflow/cli.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import typer
55
import uvicorn
66

7+
from .__about__ import __version__
78
from .api import app as fastapp
89
from .api.logs import LOGGING_CONFIG
910

@@ -20,6 +21,12 @@ def callback():
2021
typer.echo("Start call from callback function")
2122

2223

24+
@app.command()
25+
def version():
26+
"""Get the ddeutil-workflow package version."""
27+
typer.echo(__version__)
28+
29+
2330
@app.command()
2431
def job(
2532
params: Annotated[str, typer.Option(help="A job execute parameters")],

0 commit comments

Comments
 (0)