Skip to content

Commit b783740

Browse files
author
Steve Ayers
committed
Move unit tests to local protos
1 parent 8c767e9 commit b783740

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+377
-121
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ clean: ## Delete intermediate build artifacts
3333
.PHONY: generate
3434
generate: $(BIN)/buf $(BIN)/license-header ## Regenerate code and license headers
3535
rm -rf gen
36-
buf generate buf.build/bufbuild/protovalidate:$(PROTOVALIDATE_VERSION)
37-
buf generate buf.build/bufbuild/protovalidate-testing:$(PROTOVALIDATE_VERSION)
36+
$(BIN)/buf generate buf.build/bufbuild/protovalidate:$(PROTOVALIDATE_VERSION)
37+
$(BIN)/buf generate buf.build/bufbuild/protovalidate-testing:$(PROTOVALIDATE_VERSION)
38+
$(BIN)/buf generate
3839
$(ADD_LICENSE_HEADER)
3940

4041
.PHONY: format
@@ -44,7 +45,7 @@ format: install $(BIN)/license-header ## Format code
4445
pipenv run ruff check --fix protovalidate tests
4546

4647
.PHONY: test
47-
test: $(BIN)/protovalidate-conformance generate install ## Run unit tests
48+
test: generate install ## Run unit tests
4849
pipenv run pytest
4950

5051
.PHONY: conformance

buf.gen.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
version: v2
2-
managed:
3-
enabled: true
42
plugins:
53
- remote: buf.build/protocolbuffers/python:v29.3
64
out: gen

buf.lock

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Generated by buf. DO NOT EDIT.
2+
version: v2
3+
deps:
4+
- name: buf.build/bufbuild/protovalidate
5+
commit: 0409229c37804d6187ee0806eb4eebce
6+
digest: b5:795db9d3a6e066dc61d99ac651fa7f136171869abe2211ca272dd84aada7bc4583b9508249fa5b61300a5b1fe8b6dbf6edbc088aa0345d1ccb9fff705e3d48e9
7+
- name: buf.build/bufbuild/protovalidate-testing
8+
commit: 5acbe1f3c8f24ced9466b9ccccad4cb0
9+
digest: b5:5e9d54d19ce3d9d368f4b1b5ee4f20094d1c33d0f2dca19536339335c2e70d5ffedbd4fa28e290b59ecae0671c9d2dc20b6b8ebba5a9ac76cbf5f9d2af655ef4

buf.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: v2
2+
modules:
3+
- path: proto
4+
deps:
5+
- buf.build/bufbuild/protovalidate
6+
- buf.build/bufbuild/protovalidate-testing
7+
lint:
8+
use:
9+
- STANDARD
10+
ignore_only:
11+
PROTOVALIDATE:
12+
- proto/tests/example/v1/validations.proto
13+
breaking:
14+
use:
15+
- FILE

gen/buf/validate/conformance/cases/bool_pb2.py

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/buf/validate/conformance/cases/bytes_pb2.py

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/buf/validate/conformance/cases/custom_constraints/custom_constraints_pb2.py

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/buf/validate/conformance/cases/enums_pb2.py

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)