PythonAnalyzer¶
-
class
neophile.analysis.python.PythonAnalyzer(root: Path, virtualenv: Optional[VirtualEnv] = None)¶ Bases:
neophile.analysis.base.BaseAnalyzerAnalyze a tree for needed Python frozen dependency updates.
Parameters: - root (
pathlib.Path) – Root of the directory tree to analyze. - virtualenv (
neophile.virtualenv.VirtualEnv, optional) – Virtual environment manager.
Methods Summary
analyze(update)Analyze a tree and return needed Python frozen dependency updates. name()The name of the analyzer type. Methods Documentation
-
analyze(update: bool = False) → List[Update]¶ Analyze a tree and return needed Python frozen dependency updates.
Parameters: update (
bool, optional) – If set toTrue, leave the update applied. This avoids having to runmake update-depstwice, once to see if an update is needed and again to apply it properly.Returns: results – Will contain either no elements (no updates needed) or a single element (an update needed).
Return type: Raises: neophile.exceptions.UncommittedChangesError– The repository being analyzed has uncommitted changes and therefore cannot be checked for updates.subprocess.CalledProcessError– Runningmake update-depsfailed.
- root (