mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
feat(autonat): add make targets for autonat protobuf generation and formatting
This commit is contained in:
committed by
Paul Robinson
parent
05d89cb20e
commit
6064c96563
12
Makefile
12
Makefile
@ -129,3 +129,15 @@ check-git:
|
||||
echo "Error: You must have a remote named 'upstream' that points to 'py-libp2p'"; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
# autonat specific protobuf targets
|
||||
format-autonat-proto:
|
||||
black libp2p/host/autonat/pb/autonat_pb2*.py*
|
||||
isort libp2p/host/autonat/pb/autonat_pb2*.py*
|
||||
|
||||
autonat-proto: clean-autonat
|
||||
protoc --python_out=. --mypy_out=. libp2p/host/autonat/pb/autonat.proto
|
||||
$(MAKE) format-autonat-proto
|
||||
|
||||
clean-autonat:
|
||||
rm -f libp2p/host/autonat/pb/autonat_pb2*.py*
|
||||
|
||||
Reference in New Issue
Block a user