PreCommitScanner#

class neophile.scanner.pre_commit.PreCommitScanner#

Bases: BaseScanner

Scan a source tree for pre-commit hook version references.

Attributes Summary

name

Name of the scanner type.

Methods Summary

scan(root)

Scan a source tree for pre-commit hook version references.

Attributes Documentation

name#

Methods Documentation

scan(root)#

Scan a source tree for pre-commit hook version references.

Parameters:

root (Path) – Root of the source tree.

Returns:

A list of all discovered pre-commit dependencies.

Return type:

list of PreCommitDependency