pub struct PythonValidator;Expand description
Python validator using mypy and pylint
Implementations§
Source§impl PythonValidator
impl PythonValidator
Sourcepub fn check_common_issues(
&self,
content: &str,
file_path: &str,
) -> Vec<ValidationError>
pub fn check_common_issues( &self, content: &str, file_path: &str, ) -> Vec<ValidationError>
Checks for common Python issues
Sourcepub fn check_type_hints(
&self,
content: &str,
file_path: &str,
) -> Vec<ValidationWarning>
pub fn check_type_hints( &self, content: &str, file_path: &str, ) -> Vec<ValidationWarning>
Checks for missing type hints
Sourcepub fn check_print_usage(
&self,
content: &str,
file_path: &str,
) -> Vec<ValidationWarning>
pub fn check_print_usage( &self, content: &str, file_path: &str, ) -> Vec<ValidationWarning>
Checks for print usage
Trait Implementations§
Source§impl Clone for PythonValidator
impl Clone for PythonValidator
Source§fn clone(&self) -> PythonValidator
fn clone(&self) -> PythonValidator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PythonValidator
impl Debug for PythonValidator
Source§impl Default for PythonValidator
impl Default for PythonValidator
Source§impl LanguageValidator for PythonValidator
impl LanguageValidator for PythonValidator
Auto Trait Implementations§
impl Freeze for PythonValidator
impl RefUnwindSafe for PythonValidator
impl Send for PythonValidator
impl Sync for PythonValidator
impl Unpin for PythonValidator
impl UnwindSafe for PythonValidator
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