Processor#

class neophile.processor.Processor(config, analyzers, pull_requester)#

Bases: object

Process a set of repositories for updates.

Parameters:
  • config (Config) – neophile configuration.

  • analyzers (list[BaseAnalyzer]) – Analyzers to run on the repositories.

  • pull_requester (PullRequester) – Used to create pull requests.

Methods Summary

analyze_checkout(path)

Analyze a cloned repository without applying updates.

process_checkout(path)

Check a cloned repository for updates.

update_checkout(path)

Update a cloned repository.

Methods Documentation

async analyze_checkout(path)#

Analyze a cloned repository without applying updates.

Parameters:

path (Path) – Path to the cloned repository.

Returns:

Any updates found, organized by the analyzer that found the update.

Return type:

dict of Update

async process_checkout(path)#

Check a cloned repository for updates.

Creates pull requests as necessary if any needed updates are found.

Parameters:

path (Path) – Path to the cloned repository.

Return type:

None

async update_checkout(path)#

Update a cloned repository.

This does not switch branches. Updates are written to the current working tree.

Parameters:

path (Path) – Path to the cloned repository.

Returns:

All the updates that were applied.

Return type:

list of Update