pub struct PythonPlugin;Expand description
Python language plugin (uses ty via uvx)
Trait Implementations§
Source§impl LanguagePlugin for PythonPlugin
impl LanguagePlugin for PythonPlugin
Source§fn run_command_for_dir(&self, path: &Path) -> String
fn run_command_for_dir(&self, path: &Path) -> String
Detect the package name from pyproject.toml or src layout and return an appropriate run command.
Source§fn extensions(&self) -> &[&str]
fn extensions(&self) -> &[&str]
File extensions this plugin handles
Source§fn key_files(&self) -> &[&str]
fn key_files(&self) -> &[&str]
Key files that identify this language (e.g., Cargo.toml, pyproject.toml)
Source§fn required_binaries(&self) -> Vec<(&str, &str, &str)>
fn required_binaries(&self) -> Vec<(&str, &str, &str)>
Required host binaries for this plugin, grouped by role. Read more
Source§fn get_lsp_config(&self) -> LspConfig
fn get_lsp_config(&self) -> LspConfig
Get the LSP configuration for this language
Source§fn get_init_action(&self, opts: &InitOptions) -> ProjectAction
fn get_init_action(&self, opts: &InitOptions) -> ProjectAction
Get the action to initialize a new project (greenfield)
Source§fn check_tooling_action(&self, path: &Path) -> ProjectAction
fn check_tooling_action(&self, path: &Path) -> ProjectAction
Check if an existing project needs tooling sync (e.g., uv sync, cargo fetch)
Source§fn init_command(&self, opts: &InitOptions) -> String
fn init_command(&self, opts: &InitOptions) -> String
Get the command to initialize a new project
DEPRECATED: Use get_init_action instead
Source§fn test_command(&self) -> String
fn test_command(&self) -> String
Get the command to run tests
Source§fn run_command(&self) -> String
fn run_command(&self) -> String
Get the command to run the project (for verification)
Source§fn syntax_check_command(&self) -> Option<String>
fn syntax_check_command(&self) -> Option<String>
Source§fn lint_command(&self) -> Option<String>
fn lint_command(&self) -> Option<String>
Get the lint command (e.g.,
cargo clippy -- -D warnings) Read moreSource§fn file_ownership_patterns(&self) -> &[&str]
fn file_ownership_patterns(&self) -> &[&str]
File glob patterns this plugin owns (e.g.,
["*.rs", "Cargo.toml"]) Read moreSource§fn host_tool_available(&self) -> bool
fn host_tool_available(&self) -> bool
Check if the host has the required build tools available Read more
Source§fn lsp_fallback(&self) -> Option<LspConfig>
fn lsp_fallback(&self) -> Option<LspConfig>
Get fallback LSP config when primary is unavailable
Source§fn verifier_profile(&self) -> VerifierProfile
fn verifier_profile(&self) -> VerifierProfile
Build a complete verifier profile by probing each capability. Read more
Source§fn detect(&self, path: &Path) -> bool
fn detect(&self, path: &Path) -> bool
Detect if this plugin should handle the given project directory
Source§fn build_command(&self) -> Option<String>
fn build_command(&self) -> Option<String>
Auto Trait Implementations§
impl Freeze for PythonPlugin
impl RefUnwindSafe for PythonPlugin
impl Send for PythonPlugin
impl Sync for PythonPlugin
impl Unpin for PythonPlugin
impl UnsafeUnpin for PythonPlugin
impl UnwindSafe for PythonPlugin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more