-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (50 loc) · 1.33 KB
/
Makefile
File metadata and controls
59 lines (50 loc) · 1.33 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
color := $(shell tput setaf 2)
off := $(shell tput sgr0)
TARGETS = meraki_client codegen tests scripts
.PHONY: lint
lint: format linter typecheck docs
.PHONY: test
test:
@printf '\n\n*****************\n'
@printf '$(color)Running tests$(off)\n'
@printf '*****************\n'
uv run pytest
.PHONY: test-mutating
test-mutating:
@printf '\n\n*****************\n'
@printf '$(color)Running mutating tests$(off)\n'
@printf '*****************\n'
uv run pytest -m mutating
.PHONY: typecheck
typecheck:
@printf '\n\n*****************\n'
@printf '$(color)Running type checker$(off)\n'
@printf '*****************\n'
uv run ty check ${TARGETS}
.PHONY: format
format:
@printf '\n\n*****************\n'
@printf '$(color)Running format$(off)\n'
@printf '*****************\n'
uv run ruff format --check ${TARGETS}
.PHONY: linter
linter:
@printf '\n\n*****************\n'
@printf '$(color)Running linter$(off)\n'
@printf '*****************\n'
uv run ruff check ${TARGETS}
.PHONY: generate
generate:
@printf '\n\n*****************\n'
@printf '$(color)Generating SDK$(off)\n'
@printf '*****************\n'
@uv run python codegen/main.py
.PHONY: docs
docs:
@printf '\n\n*****************\n'
@printf '$(color)Test building docs$(off)\n'
@printf '*****************\n'
uv run zensical build --strict
.PHONY: serve
serve:
uv run zensical serve --open