MCPcopy Index your code
hub / github.com/numpy/numpy / get_files

Function get_files

tools/check_installed_files.py:77–92  ·  view source on GitHub ↗
(dir_to_check, kind='test')

Source from the content-addressed store, hash-verified

75
76
77def get_files(dir_to_check, kind='test'):
78 files = {}
79 patterns = {
80 'test': f'{dir_to_check}/**/test_*.py',
81 'stub': f'{dir_to_check}/**/*.pyi',
82 }
83 for path in glob.glob(patterns[kind], recursive=True):
84 relpath = os.path.relpath(path, dir_to_check)
85 files[relpath] = path
86
87 # ignore python files in vendored pythoncapi-compat submodule
88 files = {
89 k: v for k, v in files.items() if 'pythoncapi-compat' not in k
90 }
91
92 return files
93
94
95if __name__ == '__main__':

Callers 1

mainFunction · 0.85

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…