ruff/crates/ty
Emily B. Zhang a2c87c2bc1
[ty] Add note to `unresolved-import` hinting to users to configure their Python environment (#18207)
Closes https://github.com/astral-sh/ty/issues/453.

## Summary

Add an additional info diagnostic to `unresolved-import` check to hint
to users that they should make sure their Python environment is properly
configured for ty, linking them to the corresponding doc. This
diagnostic is only shown when an import is not relative, e.g., `import
maturin` not `import .maturin`.

## Test Plan

Updated snapshots with new info message and reran tests.
2025-05-19 17:24:25 -04:00
..
docs Default `src.root` to `['.', '<project_name>']` if the directory exists (#18141) 2025-05-19 18:11:27 +02:00
src Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
tests [ty] Add note to `unresolved-import` hinting to users to configure their Python environment (#18207) 2025-05-19 17:24:25 -04:00
CONTRIBUTING.md [ty] contribution guide (#18061) 2025-05-13 10:55:01 +02:00
Cargo.toml [ty] Enable 'ansi' feature to fix compile error (#18116) 2025-05-15 11:43:15 +02:00
README.md [ty] contribution guide (#18061) 2025-05-13 10:55:01 +02:00
build.rs Parse `dist-workspace.toml` for version (#17868) 2025-05-06 12:18:17 +00:00

README.md

ty

ty is an extremely fast type checker. Currently, it is a work-in-progress and not ready for production use.

The Rust code for ty lives in this repository; see CONTRIBUTING.md for more information on contributing to ty.

See the ty repo for ty documentation and releases.