-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) 路 1014 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (29 loc) 路 1014 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
36
37
.PHONY: install
install: ## Install the poetry environment and install the pre-commit hooks
python3 -m pip install .
.PHONY: check
check: ## Run code quality tools.
@echo "馃殌 Linting code: Running pre-commit"
pre-commit run -a
@echo "馃殌 Static type checking: Running mypy"
mypy .
@echo "馃殌 Checking for obsolete dependencies: Running deptry"
deptry .
.PHONY: test
test: ## Test the code with pytest
@echo "馃殌 Testing code: Running pytest"
python3 -m pytest --cov --cov-config=pyproject.toml --cov-report html --cov-report term
.PHONY: docs-test
docs-test: ## Test if documentation can be built without warnings or errors
mkdocs build -s
.PHONY: docs
docs: ## Build and serve the documentation
mkdocs serve
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
benchmark:
$(MAKE) run -C tests/verificationCode
benchmark-clean:
$(MAKE) clean -C tests/verificationCode
.DEFAULT_GOAL := help