blob: 887fa0a2d282fa020e49b266f91dbacce7aa33cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
git-hook-pre-commit-python-javascript-syntax-linter
===================================================
A git pre-commit hook that lints Python and JavaScript files to be committed. If
syntax errors are present, the commit is aborted.
## Requirements
* [flake8](https://pypi.python.org/pypi/flake8/2.4.1)
* [jshint](https://www.npmjs.com/package/jshint)
## Installation
cp pre-commit /your/project/path/.git/hooks
chmod +x /your/project/path/.git/hooks/pre-commit
If you already have a `pre-commit` hook, copy the relevant lines to your
`pre-commit` script.
## Tests
Requires `git` and `prove`. To run the tests use:
$ make
## License
Licensed under the MIT license. See the included LICENSE file.
|