MCPcopy Index your code
hub / github.com/ipython/ipython / _is_ipdoctest

Function _is_ipdoctest

IPython/testing/plugin/pytest_ipdoctest.py:174–178  ·  view source on GitHub ↗
(config: Config, path: Path, parent: Collector)

Source from the content-addressed store, hash-verified

172
173
174def _is_ipdoctest(config: Config, path: Path, parent: Collector) -> bool:
175 if path.suffix in (".txt", ".rst") and parent.session.isinitpath(path):
176 return True
177 globs = config.getoption("ipdoctestglob") or ["test*.txt"]
178 return any(fnmatch_ex(glob, path) for glob in globs)
179
180
181def _is_main_py(path: Path) -> bool:

Callers 1

pytest_collect_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…