pub struct PythonFrontend {
pub include_tests: bool,
}Expand description
The Python language frontend.
When include_tests is false (the default), two skip mechanisms apply:
- Path-based: entire files whose base name matches
test_*.py/*_test.py/conftest.py, or whose path contains atests/directory segment, are skipped. - Source-based: within an otherwise-scanned file, units that are a
test_*-named function, a method of aTest*-named class, or a method of aunittest.TestCasesubclass are skipped.
Skipped units are counted in FrontendOutput::skipped_tests.
--include-tests (include_tests: true) disables both skip mechanisms.
Fields§
§include_tests: boolTrait Implementations§
Source§impl Frontend for PythonFrontend
impl Frontend for PythonFrontend
fn language(&self) -> Language
Source§fn corpus_profile(&self) -> CorpusProfile
fn corpus_profile(&self) -> CorpusProfile
The frontend’s corpus-hygiene profile (prune dirs, exclude globs, test-file
globs, content-marker prunes). Default: empty. See
docs/corpus-profile-guideline.md.Source§fn analyze(&self, files: &[SourceFile]) -> FrontendOutput
fn analyze(&self, files: &[SourceFile]) -> FrontendOutput
Parse the sources and emit per-symbol effect observations (with evidence
and locations). Un-parseable files become diagnostics, not panics.
Auto Trait Implementations§
impl Freeze for PythonFrontend
impl RefUnwindSafe for PythonFrontend
impl Send for PythonFrontend
impl Sync for PythonFrontend
impl Unpin for PythonFrontend
impl UnsafeUnpin for PythonFrontend
impl UnwindSafe for PythonFrontend
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