PreCommitAnalyzer#

class neophile.analysis.pre_commit.PreCommitAnalyzer(scanner, inventory)#

Bases: BaseAnalyzer

Analyze a tree for needed pre-commit hook updates.

Parameters:

Attributes Summary

name

Name of the analyzer type.

Methods Summary

analyze(root, *[, update])

Analyze a tree and return needed pre-commit hook changes.

Attributes Documentation

name#

Methods Documentation

async analyze(root, *, update=False)#

Analyze a tree and return needed pre-commit hook changes.

Parameters:
  • root (Path) – Root of the path to analyze.

  • update (bool, default: False) – Ignored for this analyzer.

Returns:

List of needed updates.

Return type:

list of Update