Skip to content

Commit dc9bd19

Browse files
committed
stopping
1 parent 8746171 commit dc9bd19

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gazelle/python/generate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func matchesAnyGlob(s string, globs []string) bool {
6767
}
6868

6969
// findConftestPaths returns package paths containing conftest.py, from currentPkg
70-
// up through ancestors, stopping at pythonProjectRoot (or repo root if empty).
70+
// up through ancestors, stopping at module root.
7171
func findConftestPaths(repoRoot, currentPkg, pythonProjectRoot string) []string {
7272
var result []string
7373
for pkg := currentPkg; ; pkg = filepath.Dir(pkg) {
@@ -77,7 +77,7 @@ func findConftestPaths(repoRoot, currentPkg, pythonProjectRoot string) []string
7777
if _, err := os.Stat(filepath.Join(repoRoot, pkg, conftestFilename)); err == nil {
7878
result = append(result, pkg)
7979
}
80-
if pkg == "" || pkg == pythonProjectRoot {
80+
if pkg == "" {
8181
break
8282
}
8383
}

0 commit comments

Comments
 (0)