mirror of
https://github.com/astral-sh/ty.git
synced 2026-05-06 08:56:48 -04:00
Add note about fallback behavior to python in PATH (#2787)
Ref https://github.com/astral-sh/ruff/pull/22843#issuecomment-3884941254
This commit is contained in:
@@ -21,8 +21,9 @@ The type checker needs to discover your installed packages in order to check you
|
||||
dependencies.
|
||||
|
||||
ty will find installed packages in the active virtual environment (via `VIRTUAL_ENV`) or discover a
|
||||
virtual environment named `.venv` in the project root or working directory. It will not find
|
||||
packages in non-virtual environments without specifying the target path with `--python`.
|
||||
virtual environment named `.venv` in the project root or working directory. Failing that, ty will
|
||||
look for a `python3` or `python` binary available in `PATH`. Alternatively, the `--python` flag can
|
||||
be provided to ty to explicitly specify a path to a Python interpreter.
|
||||
|
||||
See the [module discovery](./modules.md) documentation for details.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user