MCPcopy
hub / github.com/reflex-dev/reflex / is_excluded_by_default

Function is_excluded_by_default

reflex/utils/exec.py:547–559  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

545 )
546
547 def is_excluded_by_default(path: Path) -> bool:
548 if path.is_dir():
549 if path.name.startswith("."):
550 # exclude hidden directories
551 return True
552 if path.name.startswith("__"):
553 # ignore things like __pycache__
554 return True
555 return path.name in (
556 ".gitignore",
557 "uploaded_files",
558 constants.Bun.ROOT_LOCKFILE_DIR,
559 )
560
561 reload_paths = (
562 tuple(

Callers 1

get_reload_pathsFunction · 0.85

Calls 1

startswithMethod · 0.80

Tested by

no test coverage detected