-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (24 loc) · 778 Bytes
/
Makefile
File metadata and controls
29 lines (24 loc) · 778 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
.PHONY: clean help
help:
clear;
@echo "================= Usage =================";
@echo "clean : Remove autogenerated folders and artifacts.";
@echo "clean-pyc : Remove python artifacts."
@echo "clean-build : Remove build artifacts."
@echo "test : Run tests and generate coverage report.";
# Clean the folder from build/test related folders
clean: clean-build clean-pyc
rm -rf .mypy_cache/
rm -rf .pytest_cache/
rm -f .coverage
clean-pyc:
find . -name '*.pyc' -exec rm -rf {} +
find . -name '*.pyo' -exec rm -rf {} +
clean-build:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
# Install requirements for testing and run tests
test:
python3 -m pip install -r ./requirements/dev.txt
python3 -m pytest