You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gazelle/README.md
+44-4Lines changed: 44 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,12 +121,12 @@ gazelle_python_manifest(
121
121
requirements="//:requirements_lock.txt",
122
122
# include_stub_packages: bool (default: False)
123
123
# If set to True, this flag automatically includes any corresponding type stub packages
124
-
# for the third-party libraries that are present and used. For example, if you have
124
+
# for the third-party libraries that are present and used. For example, if you have
125
125
# `boto3` as a dependency, and this flag is enabled, the corresponding `boto3-stubs`
126
126
# package will be automatically included in the BUILD file.
127
127
#
128
-
# Enabling this feature helps ensure that type hints and stubs are readily available
129
-
# for tools like type checkers and IDEs, improving the development experience and
128
+
# Enabling this feature helps ensure that type hints and stubs are readily available
129
+
# for tools like type checkers and IDEs, improving the development experience and
130
130
# reducing manual overhead in managing separate stub packages.
131
131
include_stub_packages=True
132
132
)
@@ -220,6 +220,8 @@ Python-specific directives are as follows:
220
220
| Defines the format of the distribution name in labels to third-party deps. Useful for using Gazelle plugin with other rules with different repository conventions (e.g. `rules_pycross`). Full label is always prepended with (pip) repository name, e.g. `@pip//numpy`. |
| Controls how distribution names in labels to third-party deps are normalized. Useful for using Gazelle plugin with other rules with different label conventions (e.g. `rules_pycross` uses PEP-503). Can be "snake_case", "none", or "pep503". |
This test case verifies that the generated targets correctly handle relative imports in Python. Specifically, when the Python generation mode is set to "package," it ensures that relative import statements such as from .foo import X are properly resolved to their corresponding modules.
3
+
This test case verifies that the generated targets correctly handle relative imports in
4
+
Python. Specifically, when the Python generation mode is set to "package," it ensures
5
+
that relative import statements such as from .foo import X are properly resolved to
0 commit comments