lookout.core.helpers.analyzer_context_manager

Module Contents

class lookout.core.helpers.analyzer_context_manager.AnalyzerContextManager(analyzer:Type[Analyzer], db:str, fs:str, init:bool=True, data_request_address:str='localhost:10301')

Context manager for launching analyzer.

review(self, fr:str, to:str, *, git_dir:str, bblfsh:Optional[str]=None, log_level:Optional[str]=None, config_json:Optional[dict]=None)

Proxy for LookoutSDK.review().

Triggers a review event and effectively calls the underlying analyzer’s analyze(). Read parameters description in LookoutSDK.review()

Returns:Iterator over the comments generated by the triggered analyzer. Comment confidence is not provided because of lookout-sdk limitations.
push(self, fr:str, to:str, *, git_dir:str, bblfsh:Optional[str]=None, log_level:Optional[str]=None, config_json:Optional[dict]=None)

Proxy for LookoutSDK.push().

Triggers a push event and effectively calls the underlying analyzer’s train(). Read parameters description in LookoutSDK.push()