ruff/crates/ty/tests
Alex Waygood 8664842d00
[ty] Ensure first-party search paths always appear in a sensible order (#20629)
This PR ensures that we always put `./src` before `.` in our list of
first-party search paths. This better emulates the fact that at runtime,
the module name of a file `src/foo.py` would almost certainly be `foo`
rather than `src.foo`.

I wondered if fixing this might fix
https://github.com/astral-sh/ruff/pull/20603#issuecomment-3345317444. It
seems like that's not the case, but it also seems like it leads to
better diagnostics because we report much more intuitive module names to
the user in our error messages -- so, it's probably a good change
anyway.
2025-09-29 21:19:13 +01:00
..
cli [ty] Ensure first-party search paths always appear in a sensible order (#20629) 2025-09-29 21:19:13 +01:00
file_watching.rs [ty] Fix a bug with "all_submodule_names_for_package" API 2025-09-17 13:59:28 -04:00