Skip to content

Commit 5834b5b

Browse files
committed
fix unit test
Signed-off-by: HaoXuAI <sduxuhao@gmail.com>
1 parent 833f895 commit 5834b5b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

sdk/python/feast/repo_operations.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,10 @@ def init_repo(repo_name: str, template: str):
507507

508508
def is_valid_name(name: str) -> bool:
509509
"""A name should be alphanumeric values, underscores, and hyphens but not start with an underscore"""
510-
return not name.startswith(("_", "-")) and not name.startswith("-") and re.compile(r"[^\w-]+").search(name) is None
510+
return (
511+
not name.startswith(("_", "-"))
512+
and re.compile(r"[^\w-]+").search(name) is None
513+
)
511514

512515

513516
def generate_project_name() -> str:

0 commit comments

Comments
 (0)