MCPcopy Index your code
hub / github.com/feast-dev/feast / is_valid_name

Function is_valid_name

sdk/python/feast/repo_operations.py:648–652  ·  view source on GitHub ↗

A name should be alphanumeric values, underscores, and hyphens but not start with an underscore

(name: str)

Source from the content-addressed store, hash-verified

646
647
648def is_valid_name(name: str) -> bool:
649 """A name should be alphanumeric values, underscores, and hyphens but not start with an underscore"""
650 return (
651 not name.startswith(("_", "-")) and re.compile(r"[^\w-]+").search(name) is None
652 )
653
654
655def generate_project_name() -> str:

Callers 6

generate_repo_fileFunction · 0.90
is_validMethod · 0.90
test_is_valid_nameFunction · 0.90
apply_totalFunction · 0.85
init_repoFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_is_valid_nameFunction · 0.72