Make githook set itself up.

This commit is contained in:
Matthew Stratford 2021-04-10 20:25:18 +01:00
parent 09a2a1f845
commit 023c70b6d6
2 changed files with 3 additions and 2 deletions

View file

@ -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
View 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