MCPcopy Create free account
hub / github.com/numpy/numpy / get_files

Function get_files

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

Source from the content-addressed store, hash-verified

65
66
67def get_files(dir_to_check, kind='test'):
68 files = dict()
69 patterns = {
70 'test': f'{dir_to_check}/**/test_*.py',
71 'stub': f'{dir_to_check}/**/*.pyi',
72 }
73 for path in glob.glob(patterns[kind], recursive=True):
74 relpath = os.path.relpath(path, dir_to_check)
75 files[relpath] = path
76
77 return files
78
79
80if __name__ == '__main__':

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected