-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (30 loc) · 722 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
35
36
37
38
39
PACKAGE_NAME = dsp
TEST_DIRECTORY = tests
DOC_DIRECTORY = docs
.PHONY: default
default: clean test lint
.PHONY: install
install:
@pip install .
.PHONY: deps
deps:
@pip install -r requirements.txt
.PHONY: develop
develop: deps
@pip install -e .
.PHONY: test
test:
@pytest -v --cov-report term-missing --cov=$(PACKAGE_NAME) $(TEST_DIRECTORY)
.PHONY: coverage
coverage:
@pytest -v --cov-report html --cov=$(PACKAGE_NAME) $(TEST_DIRECTORY)
.PHONY: lint
lint:
@flake8 $(PACKAGE_NAME) $(TEST_DIRECTORY) examples
@pylint --disable=fixme $(PACKAGE_NAME) $(TEST_DIRECTORY)
.PHONY: clean
clean:
rm -rf $(PACKAGE_NAME)/__pycache__
rm -rf $(TEST_DIRECTORY)/__pycache__
rm -rf .pytest_cache
rm -rf .coverage htmlcov