From 629b406872541019a6c31c235534af9a2c20ec85 Mon Sep 17 00:00:00 2001 From: "fangyaozheng@bytedance.com" Date: Fri, 5 Sep 2025 09:13:14 +0800 Subject: [PATCH] fix(vetemplate): pre-commit in template --- pyproject.toml | 3 ++- veadk/cli/cli_init.py | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b9c0c5d5..993c26d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,5 +74,6 @@ include-package-data = true [tool.ruff] exclude = [ - "veadk/integrations/ve_faas/template/*" + "veadk/integrations/ve_faas/template/*", + "veadk/integrations/ve_faas/web_template/*" ] diff --git a/veadk/cli/cli_init.py b/veadk/cli/cli_init.py index 74c12d50..7fb858a3 100644 --- a/veadk/cli/cli_init.py +++ b/veadk/cli/cli_init.py @@ -16,6 +16,7 @@ from typing import Any import click + from veadk.version import VERSION warnings.filterwarnings( @@ -70,7 +71,10 @@ def _render_prompts() -> dict[str, Any]: def init( vefaas_template_type: str, ) -> None: - """Init a veadk project that can be deployed to Volcengine VeFaaS.""" + """Init a veadk project that can be deployed to Volcengine VeFaaS. + + `template` is A2A/MCP/Web server template, `web_template` is for web applications (i.e., a simple blog). + """ import shutil from pathlib import Path @@ -103,8 +107,8 @@ def init( if not vefaas_template_type: vefaas_template_type = "template" - - template_dir_path = Path(vefaas.__file__).parent / vefaas_template_type + + template_dir_path = Path(vefaas.__file__).parent / vefaas_template_type cookiecutter( template=str(template_dir_path),