-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (21 loc) · 752 Bytes
/
Makefile
File metadata and controls
26 lines (21 loc) · 752 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
# Installs bufbuild via brew if it's not already installed
.PHONY: deps-bufbuild
deps-bufbuild:
@command -v buf > /dev/null || brew install buf
# Install Python Poetry if it's not already installed
.PHONY: deps-poetry
deps-poetry:
@command -v poetry > /dev/null || brew install poetry
poetry install
.PHONY: deps
deps: deps-bufbuild deps-poetry
# .PHONY: generate-widgets-v1-dataclasses
# generate-widgets-v1-dataclasses:
# @mkdir -p examples/simple-types/gen || true
# cd examples/simple-types && buf generate --path widgets/v1/dataclasses --output ../gen
# @autoimport examples/simple-types/gen
# @black examples/simple-types/gen --target-version py311
# @ruff examples/simple-types/gen --fix
.PHONY: clean
clean:
rm -rf examples/*/gen