summaryrefslogtreecommitdiff
path: root/Makefile
blob: 79dfaa02f5b56e3142823e99a057c35657dbb99e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
bootstrap:
	pip install -e . --use-mirrors
	pip install "file://`pwd`#egg=raven[dev]" --use-mirrors
	pip install "file://`pwd`#egg=raven[tests]" --use-mirrors
	make setup-git

test: bootstrap lint
	@echo "Running Python tests"
	py.test -x tests
	@echo ""

lint:
	@echo "Linting Python files"
	flake8 --exclude=migrations --ignore=E501,E225,E121,E123,E124,E125,E127,E128 raven || exit 1
	@echo ""

coverage:
	coverage run runtests.py --include=raven/* && \
	coverage html --omit=*/migrations/* -d cover

setup-git:
	git config branch.autosetuprebase always
	cd .git/hooks && ln -sf ../../hooks/* ./