PY-86985: Do not automatically mark source root if it resolves to a directory without __init__.py

Despite Python does not require __init__.py in the directory to import it,
it is better to avoid such directories for automatic source root detection.
It might cause false positives.
For example, the project might have folders like `sys`, `os` or `zlib` without any python code inside.

Space-RevId: 16539ee04d2255bc60ac0baa3d317856ca11839b

GitOrigin-RevId: 627ff4546ab4d9e5e386a6ffba6e4df38e8002a0
This commit is contained in:
Ilia Zakoulov
2026-01-21 18:03:25 +00:00
committed by intellij-monorepo-bot
parent 9deaa2e1b2
commit 05c34f389c
7 changed files with 37 additions and 3 deletions