MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / declaredPythonImportPaths

Function declaredPythonImportPaths

src/resolution/import-resolver.ts:888–894  ·  view source on GitHub ↗
(read: (name: string) => string | null)

Source from the content-addressed store, hash-verified

886 * `read` gives a file of the folder by name, or null. Exported for the tests.
887 */
888export function declaredPythonImportPaths(read: (name: string) => string | null): string[] {
889 const out: string[] = [];
890 for (const written of [...pytestPythonPath(read), ...pyrightExtraPaths(read)]) {
891 if (written && !out.includes(written)) out.push(written);
892 }
893 return out;
894}
895
896/**
897 * The config files of the tools themselves, which {@link

Callers 1

buildPythonModuleIndexFunction · 0.85

Calls 3

pytestPythonPathFunction · 0.85
pyrightExtraPathsFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected