Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 706 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 706 Bytes

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?)