-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
34 lines (28 loc) · 909 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
32
33
34
SHELL := /bin/bash
PYTHON = python3
TEST_PATH = ./tests/
FLAKE8_EXCLUDE = venv,.venv,.eggs,.tox,.git,__pycache__,*.pyc
.PHONY: clean init init-de test check build
clean:
@find . -name '*.pyc' -exec rm --force {} +
@find . -name '*.pyo' -exec rm --force {} +
@find . -name '*~' -exec rm --force {} +
@rm -rf build
@rm -rf dist
@rm -rf *.egg-info
@rm -f *.sqlite
@rm -rf .cache
init:
@pip install --upgrade pip
@pip install -e .
init-dev: init
@pip install -e .[dev]
@mypy pyamplipi --install-types --non-interactive
test:
@${PYTHON} -m pytest ${TEST_PATH} --disable-warnings
check:
@${PYTHON} -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude ${FLAKE8_EXCLUDE}
@${PYTHON} -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=132 --statistics --exclude ${FLAKE8_EXCLUDE}
@mypy pyamplipi --check-untyped-defs
build:
@${PYTHON} setup.py build