muart-failsafe/prototest/Makefile
Kevin P. Fleming e645af777a Queues and type checking
* Use asyncio Queues for passing around protobuf messages

* Annotate types and check with mypy
2025-04-26 08:40:58 -04:00

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