Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
hooks:
- id: sync-with-uv
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.15.20
rev: v0.15.21
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
Expand Down
1 change: 0 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ Generated files live under paths such as:

- `tilebox-datasets/tilebox/datasets/datasets/v1/*_pb2*.py`
- `tilebox-datasets/tilebox/datasets/tilebox/v1/*_pb2*.py`
- `tilebox-datasets/tilebox/datasets/buf/validate/*_pb2*.py`
- `tilebox-workflows/tilebox/workflows/workflows/v1/*_pb2*.py`

Regenerate protobuf code with:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- `tilebox-workflows`: Allow task `execute()` methods to use a `-> None` return annotation when postponed annotation
evaluation is enabled.
- `tilebox-datasets` and `tilebox-workflows`: Generate validation-blind protobuf messages without vendoring
`buf.validate`, avoiding duplicate descriptor conflicts when applications use their own generated validation rules.

## [0.55.0] - 2026-07-01

Expand Down
5 changes: 4 additions & 1 deletion buf.gen.datasets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ inputs:
paths:
- "datasets"
- "tilebox"
- module: buf.build/bufbuild/protovalidate
# Deliberately generate validation-blind client messages: the SDK does not validate
# client-side, and omitting buf.validate avoids conflicts in protobuf's global descriptor pool.
exclude_types:
- "buf.validate.**"
4 changes: 4 additions & 0 deletions buf.gen.workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ inputs:
- module: buf.build/tilebox/api
paths:
- "workflows"
# Deliberately generate validation-blind client messages: the SDK does not validate
# client-side, and omitting buf.validate avoids conflicts in protobuf's global descriptor pool.
exclude_types:
- "buf.validate.**"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = [{ name = "Tilebox, Inc.", email = "support@tilebox.com" }]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"tilebox-datasets",
"tilebox-datasets>=0.56.0",
"tilebox-grpc",
"tilebox-storage",
"tilebox-workflows",
Expand Down
1 change: 0 additions & 1 deletion tilebox-datasets/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ packages = ["tilebox"]
omit = [
"tilebox/*/datasets/v1/*",
"tilebox/*/tilebox/v1/*",
"tilebox/*/buf/validate/*",
]

[tool.pytest.ini_options]
Expand Down
6 changes: 3 additions & 3 deletions tilebox-datasets/tests/query/test_time_interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

_TIME_FORMAT = "%Y-%m-%dT%H:%M:%S"

# first time we use pandas takes sometimes a while to import and compile the code, causing hypothesis timeout issues
# so we warm up the function like this before
_ = _convert_to_datetime("2026-01-01")
# Parsing a timezone-suffixed string takes a slower pandas path on first use, which can exceed Hypothesis' deadline.
# Exercise that path before Hypothesis starts timing generated examples.
_ = _convert_to_datetime("2026-01-01 00:00:00.000000 UTC")


@given(
Expand Down
469 changes: 0 additions & 469 deletions tilebox-datasets/tilebox/datasets/buf/validate/validate_pb2.py

This file was deleted.

652 changes: 0 additions & 652 deletions tilebox-datasets/tilebox/datasets/buf/validate/validate_pb2.pyi

This file was deleted.

This file was deleted.

7 changes: 4 additions & 3 deletions tilebox-datasets/tilebox/datasets/data/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def from_message(cls, field: dataset_type_pb2.Field) -> "Field":
return cls(
descriptor=field.descriptor,
annotation=FieldAnnotation.from_message(field.annotation),
queryable=field.queryable,
queryable=field.annotation.queryable,
)

@classmethod
Expand Down Expand Up @@ -121,10 +121,11 @@ def from_dict(cls, field: FieldDict) -> "Field":
)

def to_message(self) -> dataset_type_pb2.Field:
annotation = self.annotation.to_message()
annotation.queryable = self.queryable
return dataset_type_pb2.Field(
descriptor=self.descriptor,
annotation=self.annotation.to_message(),
queryable=self.queryable,
annotation=annotation,
)


Expand Down
45 changes: 15 additions & 30 deletions tilebox-datasets/tilebox/datasets/datasets/v1/collections_pb2.py

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

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from tilebox.datasets.buf.validate import validate_pb2 as _validate_pb2
from tilebox.datasets.datasets.v1 import core_pb2 as _core_pb2
from tilebox.datasets.tilebox.v1 import id_pb2 as _id_pb2
from google.protobuf.internal import containers as _containers
Expand Down
Loading
Loading