-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (32 loc) · 918 Bytes
/
Makefile
File metadata and controls
39 lines (32 loc) · 918 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
38
39
\
.DEFAULT_GOAL := help
.PHONY: help setup fmt lint test ci
help:
@echo "Targets:"
@echo " setup - install dependencies (customize for your stack)"
@echo " fmt - format code"
@echo " lint - run linters"
@echo " test - run tests"
@echo " ci - run fmt + lint + test"
setup:
@echo "Customize this target for your stack."
@echo "Examples:"
@echo " Python: python -m venv .venv && . .venv/bin/activate && pip install -r requirements.txt"
@echo " Node: npm ci"
fmt:
@echo "Customize fmt for your stack."
@echo "Examples:"
@echo " Python: ruff format ."
@echo " Node: npm run fmt"
lint:
@echo "Customize lint for your stack."
@echo "Examples:"
@echo " Python: ruff check ."
@echo " Node: npm run lint"
test:
@echo "Customize test for your stack."
@echo "Examples:"
@echo " Python: pytest -q"
@echo " Node: npm test"
ci: fmt lint test
@echo "CI checks complete."