-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (22 loc) · 866 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
SHELL:=/bin/bash
APP_DIR=./src/
all: install test
server:
source env/bin/activate && cd $(APP_DIR) && python manage.py runserver
install:
python -m venv env
source env/bin/activate && pip install -r src/requirements.txt && pip install -r src/requirements-extra.txt && pip install -r src/tests/requirements.txt
test: lint analyze test-unit
test-unit:
source env/bin/activate && nosetests --with-coverage --cover-package=src -w $(APP_DIR)
lint:
source env/bin/activate && flake8 $(APP_DIR)
analyze:
source env/bin/activate && radon cc -o SCORE $(APP_DIR)
source env/bin/activate && radon mi $(APP_DIR)
#source env/bin/activate && radon raw $(APP_DIR)
outdated:
source env/bin/activate && pip list -o
source env/bin/activate && pip list -o | sed 1,2d | cut -d ' ' -f1 | while read x; do pipdeptree --packages "$$x" --reverse; done
clean:
rm -rf env/