Skip to content

Commit 107b845

Browse files
committed
fixup: changing to mypy-protobuf
Signed-off-by: Simon Schrottner <[email protected]>
1 parent 914d9e0 commit 107b845

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

providers/openfeature-provider-flagd/pyproject.toml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,22 @@ cov = [
5555
]
5656

5757
[tool.hatch.build.hooks.protobuf]
58-
dependencies = ["hatch-protobuf"]
59-
paths = ["schemas/protobuf/schema/v1/schema.proto", "schemas/protobuf/sync/v1/sync_service.proto"]
60-
output_path = "src"
58+
dependencies = [
59+
"hatch-protobuf",
60+
"mypy-protobuf~=3.0",
61+
]
62+
generate_pyi = false # we'll let mypy-protobuf do this
63+
64+
[[tool.hatch.build.hooks.protobuf.generators]]
65+
name = "mypy"
66+
outputs = ["{proto_path}/{proto_name}_pb2.pyi"]
67+
output_path = "src/openfeature/contrib/provider/flagd/"
68+
69+
70+
[[tool.hatch.build.hooks.protobuf.generators]]
71+
name = "mypy_grpc"
72+
outputs = ["{proto_path}/{proto_name}_pb2_grpc.pyi"]
73+
output_path = "src/openfeature/contrib/provider/flagd/"
6174

6275
[tool.hatch.build.targets.sdist]
6376
exclude = [

0 commit comments

Comments
 (0)