-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (25 loc) · 718 Bytes
/
Makefile
File metadata and controls
36 lines (25 loc) · 718 Bytes
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
30
31
32
33
34
35
36
.PHONY: all pep8 pyflakes clean dev
PYTHON=python
GITIGNORES=$(shell cat .gitignore |tr "\\n" ",")
all: pep8
pep8: .gitignore
env/bin/pep8 . --exclude=$(GITIGNORES)
pyflakes:
env/bin/pyflakes blueox bin tests
yapf:
find blueox -name "*.py" | xargs env/bin/yapf -i --style=google
find bin | xargs env/bin/yapf -i --style=google
dev: env/bin/activate env/.pip
env/bin/activate:
virtualenv -p $(PYTHON) --no-site-packages env
echo `pwd`/vendor > env/lib/python2.7/site-packages/vendor.pth
env/.pip: env/bin/activate requirements.txt
env/bin/pip install -r requirements.txt
env/bin/pip install -e .
touch env/.pip
test: env/.pip
env/bin/testify tests
devclean:
@rm -rf env
clean:
@rm -rf build dist