forked from uppsaladatavetare/foobar-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (23 loc) · 796 Bytes
/
Makefile
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
.PHONY: test clean install_requirements setup lint
help:
@echo 'Available targets:'
@echo ' lint Checks the codebase against PEP8 style convention.'
@echo ' test Runs all the tests in the project.'
@echo ' clean Removes *.pyc files.'
@echo ' install_requirements Installs local requirements for the project.'
@echo ' setup Installs requirements and runs project tests.'
lint:
flake8 --exclude=migrations,settings src/
check:
python src/manage.py check
test: check
python src/manage.py test src/ --settings=foobar.settings.test
coverage:
coverage run src/manage.py test src/ --settings=foobar.settings.test
coverage report
install_requirements:
pip install -r requirements/local.txt
setup: install_requirements test
clean:
find . -name "*.pyc" | xargs rm
coverage erase