mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:24 +00:00
[ty] Use python version and path from Python extension (#19012)
This commit is contained in:
parent
26f736bc46
commit
90026047f9
22 changed files with 344 additions and 99 deletions
|
@ -62,6 +62,12 @@ pub fn add_inferred_python_version_hint_to_diagnostic(
|
|||
or in a configuration file",
|
||||
);
|
||||
}
|
||||
crate::PythonVersionSource::PythonVSCodeExtension => {
|
||||
diagnostic.info(format_args!(
|
||||
"Python {version} was assumed when {action} \
|
||||
because it's the version of the selected Python interpreter in the VS Code Python extension",
|
||||
));
|
||||
}
|
||||
crate::PythonVersionSource::InstallationDirectoryLayout {
|
||||
site_packages_parent_dir,
|
||||
} => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue