Skip to content

Commit f5d00d3

Browse files
committed
Add changelog entry
1 parent 259a5a2 commit f5d00d3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ END_UNRELEASED_TEMPLATE
116116
dep is not added to the {obj}`py_test` target.
117117
* (gazelle) New directive `gazelle:python_generate_proto`; when `true`,
118118
Gazelle generates `py_proto_library` rules for `proto_library`. `false` by default.
119+
* (gazelle) Added directive `# gazelle:python_resolve_sibling_imports` (default
120+
`enabled` for backwards-compatibility). When enabled, gazelle will allow absolute
121+
imports to be resolved to sibling modules (Python 2's behavior without
122+
`absolute_import`).
119123

120124
{#v0-0-0-removed}
121125
### Removed

gazelle/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ Python-specific directives are as follows:
226226
| Controls whether to generate a separate `pyi_deps` attribute for type-checking dependencies or merge them into the regular `deps` attribute. When `false` (default), type-checking dependencies are merged into `deps` for backward compatibility. When `true`, generates separate `pyi_deps`. Imports in blocks with the format `if typing.TYPE_CHECKING:`/`if TYPE_CHECKING:` and type-only stub packages (eg. boto3-stubs) are recognized as type-checking dependencies. |
227227
| [`# gazelle:python_generate_proto`](#directive-python_generate_proto) | `false` |
228228
| Controls whether to generate a `py_proto_library` for each `proto_library` in the package. By default we load this rule from the `@protobuf` repository; use `gazelle:map_kind` if you need to load this from somewhere else. |
229+
| `# gazelle:python_resolve_sibling_imports` | `true` |
230+
| Allows absolute imports to be resolved to sibling modules (Python 2's behavior without `absolute_import`). |
229231

230232
#### Directive: `python_root`:
231233

0 commit comments

Comments
 (0)