Make githook set itself up.
This commit is contained in:
parent
09a2a1f845
commit
023c70b6d6
2 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
pip3 install autopep8
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
cp "./pre-commit" "../.git/hooks/"
|
||||
|
||||
|
|
2
dev/pre-commit
Normal file → Executable file
2
dev/pre-commit
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# from https://github.com/chibiegg/git-autopep8
|
||||
from __future__ import with_statement, print_function
|
||||
|
|
Loading…
Reference in a new issue