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:
Andrew Gallant
2026-02-11 10:27:19 -05:00
committed by GitHub
parent e96ea4cd97
commit 55b8ff2055
+3 -2
View File
@@ -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.