class documentation

class PreCommitShellHook(ShellHook):

Constructor: PreCommitShellHook(cwd, controldir)

View In Hierarchy

pre-commit shell hook.

Method __init__ Initialize pre-commit hook.

Inherited from ShellHook:

Method execute Execute the hook with given args.
Instance Variable cwd Undocumented
Instance Variable filepath Undocumented
Instance Variable name Undocumented
Instance Variable numparam Undocumented
Instance Variable post_exec_callback Undocumented
Instance Variable pre_exec_callback Undocumented
def __init__(self, cwd: str, controldir: str): ΒΆ

Initialize pre-commit hook.

Parameters
cwd:strWorking directory for hook execution
controldir:strPath to the git control directory (.git)