Skip to content

Commit 6064c96

Browse files
Winter-Sorenpacrob
authored andcommitted
feat(autonat): add make targets for autonat protobuf generation and formatting
1 parent 05d89cb commit 6064c96

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,15 @@ check-git:
129129
echo "Error: You must have a remote named 'upstream' that points to 'py-libp2p'"; \
130130
exit 1; \
131131
fi
132+
133+
# autonat specific protobuf targets
134+
format-autonat-proto:
135+
black libp2p/host/autonat/pb/autonat_pb2*.py*
136+
isort libp2p/host/autonat/pb/autonat_pb2*.py*
137+
138+
autonat-proto: clean-autonat
139+
protoc --python_out=. --mypy_out=. libp2p/host/autonat/pb/autonat.proto
140+
$(MAKE) format-autonat-proto
141+
142+
clean-autonat:
143+
rm -f libp2p/host/autonat/pb/autonat_pb2*.py*

0 commit comments

Comments
 (0)