MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / file_kind

Function file_kind

tools/docs_and_notebooks_check.py:426–432  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

424
425
426def file_kind(path: Path) -> str:
427 s = path.suffix.lower()
428 if s == ".ipynb":
429 return "ipynb"
430 if s in {".md", ".markdown"}:
431 return "md"
432 return "other"
433
434
435def _parse_git_iso_date(out: str) -> date | None:

Callers 1

scan_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected