ruff/crates/ruff_python_resolver/src
Charlie Marsh 13af91299d Avoid walking past root when resolving imports (#6126)
## Summary

Noticed in #5954: we walk _past_ the root rather than stopping _at_ the
root when attempting to traverse along the parent path. It's effectively
an off-by-one bug.
2023-07-27 10:22:13 -04:00
..
snapshots Add dedicated struct for implicit imports (#5427) 2023-06-28 18:55:43 +00:00
config.rs Misc. clean-up for import resolver (#5401) 2023-06-27 19:27:12 +00:00
execution_environment.rs Port Pyright's import resolver to Rust (#5381) 2023-06-27 16:15:07 +00:00
host.rs Port Pyright's import resolver to Rust (#5381) 2023-06-27 16:15:07 +00:00
implicit_imports.rs Format let-else with rustfmt nightly (#5461) 2023-07-03 02:13:35 +00:00
import_result.rs Add dedicated struct for implicit imports (#5427) 2023-06-28 18:55:43 +00:00
lib.rs Fix CI by downgrading to cargo insta 1.29.0 (#5589) 2023-07-08 14:54:49 +00:00
module_descriptor.rs Port Pyright's import resolver to Rust (#5381) 2023-06-27 16:15:07 +00:00
native_module.rs Add a snapshot test for native module resolution (#5423) 2023-06-28 18:16:39 +00:00
py_typed.rs Port Pyright's import resolver to Rust (#5381) 2023-06-27 16:15:07 +00:00
python_platform.rs Make lib iteration platform-specific (#5406) 2023-06-28 13:52:20 +00:00
python_version.rs Port Pyright's import resolver to Rust (#5381) 2023-06-27 16:15:07 +00:00
resolver.rs Avoid walking past root when resolving imports (#6126) 2023-07-27 10:22:13 -04:00
search.rs Remove all unwrap calls from the resolver (#5426) 2023-06-28 18:06:17 +00:00