summaryrefslogtreecommitdiff
path: root/Makefile
blob: e7ec035a20e2078d9dec6a85348002c1cc6681ad (plain)
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
ENV_BIN=env/bin

all: run

env:
	python3 -m venv env
	${ENV_BIN}/pip install --upgrade pip pip-tools setuptools
	${ENV_BIN}/pip install -e ".[tests]"
	${ENV_BIN}/pip install -e .

lint:
	pycodestyle ickapi
	pylint -j0 -d missing-docstring ickapi

test: lint

run:
	gunicorn --config gunicorn.conf --reload ickapi.main:app

clean:
	rm -rf dist/ ickapi.egg-info/
	find . -type f -name "*~" -exec rm -f {} \;
	find . -type d -name "__pycache__" -prune -exec rm -rf {} \;

reset: clean
	rm -rf env/

.PHONY: all env lint test run clean reset