Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
/gen/** linguist-generated=true
protovalidate/_gen/** linguist-generated=true
test/gen/** linguist-generated=true

proto/** linguist-vendored=true
test/proto/buf/** linguist-vendored=true
6 changes: 6 additions & 0 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: v2
managed:
enabled: true
plugins:
- remote: buf.build/bufbuild/py:v0.1.1
out: protovalidate/_gen
File renamed without changes.
1 change: 0 additions & 1 deletion packages/protovalidate-proto/LICENSE

This file was deleted.

4 changes: 0 additions & 4 deletions packages/protovalidate-proto/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions packages/protovalidate-proto/buf.gen.yaml

This file was deleted.

33 changes: 0 additions & 33 deletions packages/protovalidate-proto/pyproject.toml

This file was deleted.

8 changes: 0 additions & 8 deletions packages/protovalidate-proto/uv.lock

This file was deleted.

25 changes: 22 additions & 3 deletions poe_tasks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ sequence = [
"lint",
"test",
"test-conformance",
"test-conformance-legacy",
]

[tasks.diffcheck]
Expand All @@ -54,6 +55,7 @@ script = "scripts.generate_protovalidate:main(environ['PROTOVALIDATE_VERSION'])"
sequence = [
{ script = "poethepoet.scripts:rm('test/gen/tests')" },
{ cmd = "buf generate", cwd = "test" },
{ cmd = "fix-protobuf-imports test/gen" },
]

[tasks.format]
Expand All @@ -67,7 +69,10 @@ sequence = [

[tasks.format-protos]
help = "Apply auto-formatting to protobuf files"
cmd = "buf format --write"
sequence = [
{ cmd = "buf format --write" },
{ cmd = "buf format --write", cwd = "test" },
]

[tasks.format-python]
help = "Apply auto-formatting to Python files"
Expand All @@ -91,7 +96,10 @@ sequence = [

[tasks.lint-protos]
help = "Apply linting to protobuf files"
cmd = "buf format -d --exit-code"
sequence = [
{ cmd = "buf format -d --exit-code" },
{ cmd = "buf format -d --exit-code", cwd = "test" },
]

[tasks.lint-python]
help = "Apply linting to Python files"
Expand All @@ -115,7 +123,18 @@ go run github.com/bufbuild/protovalidate/tools/protovalidate-conformance@${PROTO
--strict_message
--expected_failures=test/conformance/nonconforming.yaml
--timeout 10s
python test/conformance/runner.py
python -- -m test.conformance.runner
"""

[tasks.test-conformance-legacy]
help = "Run the CEL conformance tests through the legacy google.protobuf message path"
env = { PROTOVALIDATE_CONFORMANCE_LEGACY = "1" }
cmd = """
go run github.com/bufbuild/protovalidate/tools/protovalidate-conformance@${PROTOVALIDATE_VERSION}
--strict_message
--expected_failures=test/conformance/nonconforming.yaml
--timeout 10s
python -- -m test.conformance.runner
"""

[tasks.test]
Expand Down
126 changes: 0 additions & 126 deletions proto/tests/example/v1/validations.proto

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions protovalidate/_gen/buf/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions protovalidate/_gen/buf/validate/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading