(pyprojectPath string)
| 1079 | var reNonPackageMode = regexp.MustCompile(`(?m)^\s*package-mode\s*=\s*false`) |
| 1080 | |
| 1081 | func isNonPackageMode(pyprojectPath string) bool { |
| 1082 | data, err := os.ReadFile(pyprojectPath) |
| 1083 | if err != nil { |
| 1084 | return false |
| 1085 | } |
| 1086 | return reNonPackageMode.Match(data) |
| 1087 | } |
| 1088 | |
| 1089 | // parsePyprojectDeps extracts dependency specifiers from pyproject.toml without |
| 1090 | // a full TOML parser. It handles two common layouts: |
no outgoing calls
no test coverage detected