-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 717 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (28 loc) · 717 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
34
35
SRC = mindpq.py
TEST = test.py
venv: requirements.txt requirements_dev.txt
@python3 -m venv $@
@source $@/bin/activate && pip install -r $< -r requirements_dev.txt
@echo "enter virtual environment: source $@/bin/activate"
tags: $(SRC) $(TEST)
@ctags --languages=python --python-kinds=-i $(SRC) $(TEST)
.PHONY: test
test:
@python -m unittest
coverage: $(SRC) $(TEST)
@coverage run --source=. --branch --concurrency=thread $(TEST)
@coverage report -m
@coverage html -d ./coverage
@coverage erase
.PHONY: lint
lint:
@pylint -f colorized $(SRC) $(TEST)
.PHONY: typecheck
typecheck:
@mypy $(SRC) $(TEST)
.PHONY: clean
clean:
@$(RM) -r coverage
@$(RM) -r .mypy_cache
@$(RM) -r __pycache__
@$(RM) tags