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

Function _is_setup_py

IPython/testing/plugin/pytest_ipdoctest.py:167–171  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

165
166
167def _is_setup_py(path: Path) -> bool:
168 if path.name != "setup.py":
169 return False
170 contents = path.read_bytes()
171 return b"setuptools" in contents or b"distutils" in contents
172
173
174def _is_ipdoctest(config: Config, path: Path, parent: Collector) -> 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…