With the addition of astral-sh/ruff#17991 I suggest being able to set the path to a python executable in the settings. Even better, make it automatically use the python executable that is set here in vscode:

This change would make ty work for non venv-based workflows such as conda.