Skip to content

Commit 6c000e4

Browse files
authored
Configure the protobuf include paths (#41)
By default repo-config adds this repository (api-common) as a dependency when generating new API repos, as it is supposed to be included by most (if not all) APIs. So the default `include_paths` repo-config uses looks like `["submodules/api-common-protos", "submodules/frequenz-api-common/proto"]`. Of course in this repository we don't have ourself as a cyclic dependency, and we only depend on `submodules/api-common-protos`, so we need to override the `include_paths` option, otherwise we get errors about `submodules/frequenz-api-common/proto` not existing.
2 parents 371ec6b + 4391557 commit 6c000e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ profile = "black"
8282
line_length = 88
8383
src_paths = ["benchmarks", "examples", "src", "tests"]
8484

85+
[tool.frequenz-repo-config.protobuf]
86+
include_paths = ["submodules/api-common-protos"]
87+
8588
[tool.pylint.similarities]
8689
ignore-comments = ['yes']
8790
ignore-docstrings = ['yes']

0 commit comments

Comments
 (0)