Skip to content

Commit 1368a10

Browse files
fix(vetemplate): pre-commit in template (#136)
1 parent e96c6ed commit 1368a10

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,6 @@ include-package-data = true
7474

7575
[tool.ruff]
7676
exclude = [
77-
"veadk/integrations/ve_faas/template/*"
77+
"veadk/integrations/ve_faas/template/*",
78+
"veadk/integrations/ve_faas/web_template/*"
7879
]

veadk/cli/cli_init.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from typing import Any
1717

1818
import click
19+
1920
from veadk.version import VERSION
2021

2122
warnings.filterwarnings(
@@ -70,7 +71,10 @@ def _render_prompts() -> dict[str, Any]:
7071
def init(
7172
vefaas_template_type: str,
7273
) -> None:
73-
"""Init a veadk project that can be deployed to Volcengine VeFaaS."""
74+
"""Init a veadk project that can be deployed to Volcengine VeFaaS.
75+
76+
`template` is A2A/MCP/Web server template, `web_template` is for web applications (i.e., a simple blog).
77+
"""
7478
import shutil
7579
from pathlib import Path
7680

@@ -103,8 +107,8 @@ def init(
103107

104108
if not vefaas_template_type:
105109
vefaas_template_type = "template"
106-
107-
template_dir_path = Path(vefaas.__file__).parent / vefaas_template_type
110+
111+
template_dir_path = Path(vefaas.__file__).parent / vefaas_template_type
108112

109113
cookiecutter(
110114
template=str(template_dir_path),

0 commit comments

Comments
 (0)