MCPcopy Create free account
hub / github.com/apache/burr / should_validate

Function should_validate

examples/validate_examples.py:50–57  ·  view source on GitHub ↗

Return True if the given directory is an example directory.

(directory: str)

Source from the content-addressed store, hash-verified

48
49
50def should_validate(directory: str) -> bool:
51 """Return True if the given directory is an example directory."""
52 return (
53 os.path.isdir(os.path.join(EXAMPLES_DIR, directory))
54 and not directory.startswith(".")
55 and not directory.startswith("_")
56 and directory not in FILTERLIST
57 )
58
59
60def get_directories(base_path: str) -> list[str]:

Callers 1

get_directoriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected