Skip to content

Commit d6ddd7b

Browse files
committed
Added setup target and git hook.
1 parent 052d1cd commit d6ddd7b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

resources/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ VENV_FLEX?=.env_flex
77

88
help:
99
@echo "Please use \`make <target>' where <target> is one of"
10+
@echo " setup to setup the virtualenv and git hook."
1011
@echo " venv to build the working virtual environment for the"
1112
@echo " standard environment application, and to install"
1213
@echo " requirements for deployment."
@@ -22,6 +23,10 @@ help:
2223

2324
# Consciously avoiding "all" target because we may want to use it for building
2425
# the actual product rather than a sane testing environment.
26+
setup: venv
27+
ln ./resources/dot-git-hooks-pre-commit .git/hooks/pre-commit
28+
chmod +x .git/hooks/pre-commit
29+
2530
venv: virtualenv_std requirements_std appenginesdk
2631

2732
venv_flex: virtualenv_flex requirements_flex

resources/dot-git-hooks-pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
make pyflakes

0 commit comments

Comments
 (0)