(raw: string)
| 773 | function declaredPythonRoots(context: ResolutionContext, service: string): string[] { |
| 774 | const out: string[] = []; |
| 775 | const add = (raw: string): void => { |
| 776 | const dir = raw.trim().replace(/^["']|["']$/g, '').replace(/^\.(?:\/|$)/, '').replace(/\/+$/, ''); |
| 777 | if (!dir || dir.startsWith('..') || path.isAbsolute(dir)) return; |
| 778 | out.push(joinRel(service, dir)); |
| 779 | }; |
| 780 | const toml = context.readFile(joinRel(service, 'pyproject.toml')); |
| 781 | if (toml) { |
| 782 | for (const [table, body] of iniTables(toml)) { |
no test coverage detected