-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 689 Bytes
/
Makefile
File metadata and controls
36 lines (29 loc) · 689 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
# Display this help message
.PHONY: help
help:
@awk '/^.PHONY:/ && (a ~ /#/) {gsub(/.PHONY: /, "", $$0); gsub(/# /, "", a); printf "%s @ %s\n", $$0, a}{a=$$0}' $(MAKEFILE_LIST) | column -s "@" -t
# Set up for development
.PHONY: setup
setup:
@./scripts/dev.sh
# Format Shell source
.PHONY: fmt-shell
fmt-shell:
@shfmt -i 2 -w scripts/
# Format all source
.PHONY: fmt
fmt: fmt-shell
# Lint & check Python source
.PHONY: lint-python
lint-python: fmt
@poetry run lint
# Format & lint all source
.PHONY: lint
lint: fmt lint-python
# Run Python unit tests
.PHONY: test-python
test-python:
@poetry run python -m unittest --verbose
# Run all unit tests
.PHONY: test
test: test-python