forked from eugeneyan/python-collab-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) 路 786 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (25 loc) 路 786 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
setup:
python -m venv .venv && . .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.dev
pip install -r requirements.prod
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
clean-test:
rm -f .coverage
rm -f .coverage.*
clean: clean-pyc clean-test
test: clean
. .venv/bin/activate && py.test tests --cov=src --cov-report=term-missing --cov-fail-under 95
mypy:
. .venv/bin/activate && mypy src
lint:
. .venv/bin/activate && pylint src -j 4 --reports=y
docs: FORCE
cd docs; . .venv/bin/activate && sphinx-apidoc -o ./source ./src
cd docs; . .venv/bin/activate && sphinx-build -b html ./source ./build
FORCE:
check: test lint mypy