Skip to content

nityaoberoi/githooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plugin system for githooks

git hook init (--exclude) postcommit git hook list (--installed/--available) git hook register (--exclude, --include) git hook unregister


precommit.py

from githook-plugins import ( Pep8Hook, JsLintHook UnitTestHook )

hooks = [Pep8Hook, JsLintHook, UnitTestHook]

def run_hooks(): for hook in hooks: hook.run()


from hooks import Dispatcher Dispatcher(sys.argv[0]).run()

Dispatch(pre-commit).run()


register hoooks in config files:

[hooks_pre-commit] enabled = 'pep8,pylint'


About

An easy way to install your githooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages