PythonAnalyzer

class neophile.analysis.python.PythonAnalyzer(root: Path, virtualenv: Optional[VirtualEnv] = None)

Bases: neophile.analysis.base.BaseAnalyzer

Analyze a tree for needed Python frozen dependency updates.

Parameters

Methods Summary

analyze([update])

Analyze a tree and return needed Python frozen dependency updates.

name()

The name of the analyzer type.

Methods Documentation

async analyze(update: bool = False) List[Update]

Analyze a tree and return needed Python frozen dependency updates.

Parameters

update (bool, optional) – If set to True, leave the update applied. This avoids having to run make update-deps twice, 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

List[neophile.update.base.Update]

Raises
name() str

The name of the analyzer type.

Returns

name – A string representing the type of analyzer this is. Used for reporting results accumulated from a bunch of analyzers.

Return type

str