Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bahattincinic/python-git-hook
Python pre-commit hook
https://github.com/bahattincinic/python-git-hook
Last synced: about 1 month ago
JSON representation
Python pre-commit hook
- Host: GitHub
- URL: https://github.com/bahattincinic/python-git-hook
- Owner: bahattincinic
- Created: 2014-07-09T18:53:55.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-14T12:37:28.000Z (about 8 years ago)
- Last Synced: 2023-04-27T16:49:01.440Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 8
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Git Commit Hook
====================
Pre-commit hook for Git checking Python and Javascript code qualityUsage
------
The commit hook will automatically be called when you are running `git commit`.Screenshots
------![alt text](https://cloud.githubusercontent.com/assets/1684999/3529919/f39c73d4-079e-11e4-85d8-f1a379cc2cc8.png)
![alt text](https://cloud.githubusercontent.com/assets/1684999/3529923/00b296d4-079f-11e4-9d43-d463511792ca.png)Checklist
------
1. pep8
2. pyflakes
3. ipdb
4. print
5. console.log
6. debugger
7. JShintRequirements
-------------
1. pep8 (`pip install pep8`)
2. pyflakes (`pip install pyflakes`)
3. jshint (`npm install -g jshint`)Installation:
-------------
1. Save pre-commit as your_project/.git/hooks/pre-commit
2. Mark pre-commit executable: ```$ chmod +x your_project/.git/hooks/pre-commit```Override
------
The hook can be overridden: ```$ git commit --no-verify```This code was forked from [https://gist.github.com/spulec/1364640](https://gist.github.com/spulec/1364640).