Skip to content

Commit b0e51b6

Browse files
committed
Update README.md, CHANGELOG.md
1 parent 9fc3565 commit b0e51b6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ END_UNRELEASED_TEMPLATE
108108
* 3.14.0b3
109109
* (gazelle) New directive `gazelle:python_generate_proto`; when `true`,
110110
Gazelle generates `py_proto_library` rules for `proto_library`. `false` by default.
111+
* (gazelle) New directive `gazelle:python_proto_naming_convention`; controls
112+
naming of `py_proto_library` rules. See `gazelle/README.md`.
111113

112114
{#v0-0-0-removed}
113115
### Removed

gazelle/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ Python-specific directives are as follows:
208208
| Controls the `py_binary` naming convention. Follows the same interpolation rules as `python_library_naming_convention`. | |
209209
| `# gazelle:python_test_naming_convention` | `$package_name$_test` |
210210
| Controls the `py_test` naming convention. Follows the same interpolation rules as `python_library_naming_convention`. | |
211+
| `# gazelle:python_proto_naming_convention` | `$proto_name$_py_pb2` |
212+
| Controls the `py_proto_library naming convention. It interpolates `$proto_name$` with the proto_library rule name, minus any trailing _proto. E.g. if the proto_library name is `foo_proto`, setting this to `$proto_name$_my_lib` would render to `foo_my_lib`. | |
211213
| `# gazelle:resolve py ...` | n/a |
212214
| Instructs the plugin what target to add as a dependency to satisfy a given import statement. The syntax is `# gazelle:resolve py import-string label` where `import-string` is the symbol in the python `import` statement, and `label` is the Bazel label that Gazelle should write in `deps`. | |
213215
| [`# gazelle:python_default_visibility labels`](#directive-python_default_visibility) | |

0 commit comments

Comments
 (0)