Skip to content

KangOl/gpch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPCH - Git Pre-Commit Hook

gpch is a git pre-commit hook that will check your current diff against the following

  • search for trealing spaces
  • search for remaining conflits marks
  • search for leftover debugging instructions
  • validates python code through flake8 (if installed)
  • validates javascript code through eslint (if installed)

gpch is mainly used to validate python and js code.

Install

Simply link the pre-commit file into the .git/hooks directory of your git repository.

Colored output

If gpch find colout, it will be used to color the ouput of flake8.

TODO

  • validate sass/scss/less files
  • validate xml files (via xmllint?)

Releases

No releases published

Packages

No packages published