* Use asyncio Queues for passing around protobuf messages * Annotate types and check with mypy
21 lines
383 B
Makefile
21 lines
383 B
Makefile
PROTO_DIR = ../proto
|
|
|
|
proto_inputs = $(wildcard $(PROTO_DIR)/*.proto)
|
|
proto_outputs = $(patsubst %.proto,%_pb2.py,$(notdir $(proto_inputs)))
|
|
|
|
all: $(proto_outputs)
|
|
|
|
%_pb2.py: $(PROTO_DIR)/%.proto
|
|
@protoc --proto_path=$(PROTO_DIR) --python_out=. --pyi_out=. $^
|
|
|
|
.PHONY: lint lint-fix
|
|
|
|
lint:
|
|
@ruff format --diff
|
|
@ruff check
|
|
@mypy
|
|
|
|
lint-fix:
|
|
@ruff format
|
|
@ruff check --fix
|
|
@mypy
|