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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ __pycache__
/.vscode/
.envrc
.benchmarks
site
3 changes: 3 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# API Reference

::: protovalidate
10 changes: 10 additions & 0 deletions docs/images/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions docs/images/logos/buf.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Protovalidate

Welcome to Protovalidate!

View our [main documentation](https://protovalidate.com/quickstart-python/)
or the generated [API reference](./api.md).
8 changes: 8 additions & 0 deletions poe_tasks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ sequence = [
help = "Check for uncommitted or untracked files (guards against codegen regressions)"
shell = "test -z \"$(git status --porcelain | tee /dev/stderr)\""

[tasks.docs-build]
help = "Build documentation"
cmd = "uv run --group docs zensical build"

[tasks.docs-serve]
help = "Start documentation local server"
cmd = "uv run --group docs zensical serve"

[tasks.generate]
sequence = [
"generate-cel",
Expand Down
2 changes: 1 addition & 1 deletion protovalidate/_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def validate(
Raises:
CompilationError: If the static rules could not be compiled.
ValidationError: If the message is invalid. The violations raised as part of this error should
always be equal to the list of violations returned by `collect_violations`.
always be equal to the list of violations returned by `collect_violations`.
"""
coerced = self._coerce(message)
violations = self.collect_violations(coerced, fail_fast=fail_fast)
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ dev = [
# versions. Floored at 6.31.0 required by the cel-expr-python backend.
"protobuf>=6.31.0",
]
docs = ["mkdocstrings-python==2.0.5", "zensical==0.0.50"]

[build-system]
requires = ["hatch-vcs", "hatchling"]
Expand Down
Loading
Loading