Commit 27ca7f5
fix: exclude subpackages from Python package discovery
When src/ is itself a Python package (has __init__.py), don't search
inside it for additional packages. Anything inside would be a subpackage,
not a separate top-level package.
This fixes Scrapy template detection where src/ contains both __init__.py
and a spiders/ subpackage with its own __init__.py.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent da08ced commit 27ca7f5
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
| 332 | + | |
| 333 | + | |
333 | 334 | | |
334 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
335 | 338 | | |
336 | 339 | | |
337 | 340 | | |
| |||
0 commit comments