Skip to content

Commit 889f96a

Browse files
authored
Merge branch 'main' into handle-types-and-stubs
2 parents c9f367e + a7119c9 commit 889f96a

File tree

87 files changed

+2297
-21745
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+2297
-21745
lines changed

.bazelci/presubmit.yml

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ buildifier:
4848
- "--noenable_bzlmod"
4949
- "--test_tag_filters=-integration-test"
5050
.common_workspace_flags: &common_workspace_flags
51+
skip_in_bazel_downstream_pipeline: "Bazel 9 doesn't support workspace"
5152
test_flags:
5253
- "--noenable_bzlmod"
5354
- "--enable_workspace"
@@ -132,6 +133,7 @@ tasks:
132133
bazel: last_rc
133134
ubuntu_workspace:
134135
<<: *reusable_config
136+
<<: *common_workspace_flags
135137
name: "Default: Ubuntu, workspace"
136138
platform: ubuntu2004
137139
mac_workspace:
@@ -141,8 +143,30 @@ tasks:
141143
platform: macos
142144
windows_workspace:
143145
<<: *reusable_config
146+
<<: *common_workspace_flags
144147
name: "Default: Windows, workspace"
145148
platform: windows
149+
# Most of tests/integration are failing on Windows w/workspace. Skip them
150+
# for now until we can look into it.
151+
build_targets:
152+
- "--"
153+
- "..."
154+
# As a regression test for #225, check that wheel targets still build when
155+
# their package path is qualified with the repo name.
156+
- "@rules_python//examples/wheel/..."
157+
build_flags:
158+
- "--noenable_bzlmod"
159+
- "--enable_workspace"
160+
- "--keep_going"
161+
- "--build_tag_filters=-integration-test"
162+
- "--config=bazel7.x"
163+
test_targets:
164+
- "--"
165+
- "..."
166+
test_flags:
167+
- "--noenable_bzlmod"
168+
- "--enable_workspace"
169+
- "--test_tag_filters=-integration-test"
146170

147171
debian:
148172
<<: *reusable_config
@@ -275,28 +299,6 @@ tasks:
275299
working_directory: examples/bzlmod
276300
platform: windows
277301
bazel: last_rc
278-
integration_test_bzlmod_ubuntu_lockfile:
279-
<<: *reusable_build_test_all
280-
<<: *coverage_targets_example_bzlmod
281-
name: "examples/bzlmod: Ubuntu with lockfile"
282-
working_directory: examples/bzlmod
283-
platform: ubuntu2004
284-
bazel: 7.x
285-
shell_commands:
286-
# Update the lockfiles and fail if it is different.
287-
- "../../tools/private/update_bzlmod_lockfiles.sh"
288-
- "git diff --exit-code"
289-
integration_test_bzlmod_macos_lockfile:
290-
<<: *reusable_build_test_all
291-
<<: *coverage_targets_example_bzlmod
292-
name: "examples/bzlmod: macOS with lockfile"
293-
working_directory: examples/bzlmod
294-
platform: macos
295-
bazel: 7.x
296-
shell_commands:
297-
# Update the lockfiles and fail if it is different.
298-
- "../../tools/private/update_bzlmod_lockfiles.sh"
299-
- "git diff --exit-code"
300302

301303
integration_test_bzlmod_generate_build_file_generation_ubuntu_min:
302304
<<: *minimum_supported_version

.bazelignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ examples/bzlmod_build_file_generation/bazel-bzlmod_build_file_generation
2222
examples/multi_python_versions/bazel-multi_python_versions
2323
examples/pip_parse/bazel-pip_parse
2424
examples/pip_parse_vendored/bazel-pip_parse_vendored
25+
examples/pip_repository_annotations/bazel-pip_repository_annotations
2526
examples/py_proto_library/bazel-py_proto_library
2627
tests/integration/compile_pip_requirements/bazel-compile_pip_requirements
2728
tests/integration/ignore_root_user_error/bazel-ignore_root_user_error

.bazelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# (Note, we cannot use `common --deleted_packages` because the bazel version command doesn't support it)
55
# To update these lines, execute
66
# `bazel run @rules_bazel_integration_test//tools:update_deleted_packages`
7-
build --deleted_packages=examples/build_file_generation,examples/build_file_generation/random_number_generator,examples/bzlmod,examples/bzlmod/entry_points,examples/bzlmod/entry_points/tests,examples/bzlmod/libs/my_lib,examples/bzlmod/other_module,examples/bzlmod/other_module/other_module/pkg,examples/bzlmod/patches,examples/bzlmod/py_proto_library,examples/bzlmod/py_proto_library/example.com/another_proto,examples/bzlmod/py_proto_library/example.com/proto,examples/bzlmod/runfiles,examples/bzlmod/tests,examples/bzlmod/tests/other_module,examples/bzlmod/whl_mods,examples/bzlmod_build_file_generation,examples/bzlmod_build_file_generation/other_module/other_module/pkg,examples/bzlmod_build_file_generation/runfiles,examples/multi_python_versions/libs/my_lib,examples/multi_python_versions/requirements,examples/multi_python_versions/tests,examples/pip_parse,examples/pip_parse_vendored,examples/pip_repository_annotations,examples/py_proto_library,examples/py_proto_library/example.com/another_proto,examples/py_proto_library/example.com/proto,gazelle,gazelle/manifest,gazelle/manifest/generate,gazelle/manifest/hasher,gazelle/manifest/test,gazelle/modules_mapping,gazelle/python,gazelle/python/private,gazelle/pythonconfig,tests/integration/compile_pip_requirements,tests/integration/compile_pip_requirements_test_from_external_repo,tests/integration/custom_commands,tests/integration/ignore_root_user_error,tests/integration/ignore_root_user_error/submodule,tests/integration/local_toolchains,tests/integration/pip_parse,tests/integration/pip_parse/empty,tests/integration/py_cc_toolchain_registered
8-
query --deleted_packages=examples/build_file_generation,examples/build_file_generation/random_number_generator,examples/bzlmod,examples/bzlmod/entry_points,examples/bzlmod/entry_points/tests,examples/bzlmod/libs/my_lib,examples/bzlmod/other_module,examples/bzlmod/other_module/other_module/pkg,examples/bzlmod/patches,examples/bzlmod/py_proto_library,examples/bzlmod/py_proto_library/example.com/another_proto,examples/bzlmod/py_proto_library/example.com/proto,examples/bzlmod/runfiles,examples/bzlmod/tests,examples/bzlmod/tests/other_module,examples/bzlmod/whl_mods,examples/bzlmod_build_file_generation,examples/bzlmod_build_file_generation/other_module/other_module/pkg,examples/bzlmod_build_file_generation/runfiles,examples/multi_python_versions/libs/my_lib,examples/multi_python_versions/requirements,examples/multi_python_versions/tests,examples/pip_parse,examples/pip_parse_vendored,examples/pip_repository_annotations,examples/py_proto_library,examples/py_proto_library/example.com/another_proto,examples/py_proto_library/example.com/proto,gazelle,gazelle/manifest,gazelle/manifest/generate,gazelle/manifest/hasher,gazelle/manifest/test,gazelle/modules_mapping,gazelle/python,gazelle/python/private,gazelle/pythonconfig,tests/integration/compile_pip_requirements,tests/integration/compile_pip_requirements_test_from_external_repo,tests/integration/custom_commands,tests/integration/ignore_root_user_error,tests/integration/ignore_root_user_error/submodule,tests/integration/local_toolchains,tests/integration/pip_parse,tests/integration/pip_parse/empty,tests/integration/py_cc_toolchain_registered
7+
build --deleted_packages=examples/build_file_generation,examples/build_file_generation/random_number_generator,examples/bzlmod,examples/bzlmod_build_file_generation,examples/bzlmod_build_file_generation/other_module/other_module/pkg,examples/bzlmod_build_file_generation/runfiles,examples/bzlmod/entry_points,examples/bzlmod/entry_points/tests,examples/bzlmod/libs/my_lib,examples/bzlmod/other_module,examples/bzlmod/other_module/other_module/pkg,examples/bzlmod/patches,examples/bzlmod/py_proto_library,examples/bzlmod/py_proto_library/example.com/another_proto,examples/bzlmod/py_proto_library/example.com/proto,examples/bzlmod/runfiles,examples/bzlmod/tests,examples/bzlmod/tests/other_module,examples/bzlmod/whl_mods,examples/multi_python_versions/libs/my_lib,examples/multi_python_versions/requirements,examples/multi_python_versions/tests,examples/pip_parse,examples/pip_parse_vendored,examples/pip_repository_annotations,examples/py_proto_library,examples/py_proto_library/example.com/another_proto,examples/py_proto_library/example.com/proto,gazelle,gazelle/manifest,gazelle/manifest/generate,gazelle/manifest/hasher,gazelle/manifest/test,gazelle/modules_mapping,gazelle/python,gazelle/pythonconfig,gazelle/python/private,tests/integration/compile_pip_requirements,tests/integration/compile_pip_requirements_test_from_external_repo,tests/integration/custom_commands,tests/integration/ignore_root_user_error,tests/integration/ignore_root_user_error/submodule,tests/integration/local_toolchains,tests/integration/pip_parse,tests/integration/pip_parse/empty,tests/integration/py_cc_toolchain_registered
8+
query --deleted_packages=examples/build_file_generation,examples/build_file_generation/random_number_generator,examples/bzlmod,examples/bzlmod_build_file_generation,examples/bzlmod_build_file_generation/other_module/other_module/pkg,examples/bzlmod_build_file_generation/runfiles,examples/bzlmod/entry_points,examples/bzlmod/entry_points/tests,examples/bzlmod/libs/my_lib,examples/bzlmod/other_module,examples/bzlmod/other_module/other_module/pkg,examples/bzlmod/patches,examples/bzlmod/py_proto_library,examples/bzlmod/py_proto_library/example.com/another_proto,examples/bzlmod/py_proto_library/example.com/proto,examples/bzlmod/runfiles,examples/bzlmod/tests,examples/bzlmod/tests/other_module,examples/bzlmod/whl_mods,examples/multi_python_versions/libs/my_lib,examples/multi_python_versions/requirements,examples/multi_python_versions/tests,examples/pip_parse,examples/pip_parse_vendored,examples/pip_repository_annotations,examples/py_proto_library,examples/py_proto_library/example.com/another_proto,examples/py_proto_library/example.com/proto,gazelle,gazelle/manifest,gazelle/manifest/generate,gazelle/manifest/hasher,gazelle/manifest/test,gazelle/modules_mapping,gazelle/python,gazelle/pythonconfig,gazelle/python/private,tests/integration/compile_pip_requirements,tests/integration/compile_pip_requirements_test_from_external_repo,tests/integration/custom_commands,tests/integration/ignore_root_user_error,tests/integration/ignore_root_user_error/submodule,tests/integration/local_toolchains,tests/integration/pip_parse,tests/integration/pip_parse/empty,tests/integration/py_cc_toolchain_registered
99

1010
test --test_output=errors
1111

.github/CODEOWNERS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* @rickeylev @aignas
44

55
# Directory containing the Gazelle extension and Go code.
6-
/gazelle/ @f0rmiga
7-
/examples/build_file_generation/ @f0rmiga
6+
/gazelle/ @dougthor42 @aignas
7+
/examples/build_file_generation/ @dougthor42 @aignas
88

99
# PyPI integration related code
10-
/python/private/pypi/ @aignas @groodt
11-
/tests/pypi/ @aignas @groodt
10+
/python/private/pypi/ @rickeylev @aignas @groodt
11+
/tests/pypi/ @rickeylev @aignas @groodt

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ jobs:
4242
# Use GH feature to populate the changelog automatically
4343
generate_release_notes: true
4444
body_path: release_notes.txt
45+
prerelease: ${{ contains(github.ref, '-rc') }}
4546
fail_on_unmatched_files: true
4647
files: rules_python-*.tar.gz

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,3 @@ user.bazelrc
5252
# MODULE.bazel.lock is ignored for now as per recommendation from upstream.
5353
# See https://github.com/bazelbuild/bazel/issues/20369
5454
MODULE.bazel.lock
55-
!/examples/bzlmod/MODULE.bazel.lock

.pre-commit-config.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,3 @@ repos:
4949
entry: bazel run @rules_bazel_integration_test//tools:update_deleted_packages
5050
files: ^((examples|tests)/.*/(MODULE.bazel|WORKSPACE|WORKSPACE.bzlmod|BUILD.bazel)|.bazelrc)$
5151
pass_filenames: false
52-
- id: update-bzlmod-lockfiles
53-
name: Update bzlmod lockfiles
54-
language: script
55-
entry: ./tools/private/update_bzlmod_lockfiles.sh
56-
files: ^python/
57-
pass_filenames: false

BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ filegroup(
4040
"MODULE.bazel",
4141
"WORKSPACE",
4242
"WORKSPACE.bzlmod",
43-
"internal_deps.bzl",
44-
"internal_setup.bzl",
43+
"internal_dev_deps.bzl",
44+
"internal_dev_setup.bzl",
4545
"version.bzl",
4646
"//python:distribution",
4747
"//tools:distribution",

CHANGELOG.md

Lines changed: 65 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,27 @@ Unreleased changes template.
5252

5353
{#v0-0-0-changed}
5454
### Changed
55+
* Nothing changed.
56+
57+
{#v0-0-0-fixed}
58+
### Fixed
59+
* Nothing fixed.
60+
61+
{#v0-0-0-added}
62+
### Added
63+
* Nothing added.
64+
65+
{#v0-0-0-removed}
66+
### Removed
67+
* Nothing removed.
68+
69+
{#v1-0-0}
70+
## [1.0.0] - 2024-12-05
71+
72+
[1.0.0]: https://github.com/bazelbuild/rules_python/releases/tag/1.0.0
73+
74+
{#v1-0-0-changed}
75+
### Changed
5576

5677
**Breaking**:
5778
* (toolchains) stop exposing config settings in python toolchain alias repos.
@@ -68,30 +89,65 @@ Unreleased changes template.
6889
{bzl:obj}`python_register_toolchains` and
6990
{bzl:obj}`python_register_multi_toolchains` macros or the {bzl:obj}`python`
7091
bzlmod extension.
92+
* (bzlmod) `pip.parse.parse_all_requirements_files` attribute has been removed.
93+
See notes in the previous versions about what to do.
94+
* (deps) rules_cc 0.1.0 (workspace) and 0.0.16 (bzlmod).
95+
* (deps) protobuf 29.0-rc2 (workspace; bzlmod already specifying that version).
7196

7297
Other changes:
7398
* (python_repository) Start honoring the `strip_prefix` field for `zstd` archives.
74-
75-
{#v0-0-0-fixed}
99+
* (pypi) {bzl:obj}`pip_parse.extra_hub_aliases` now works in WORKSPACE files.
100+
* (binaries/tests) For {obj}`--bootstrap_impl=script`, a binary-specific (but
101+
otherwise empty) virtual env is used to customize `sys.path` initialization.
102+
* (deps) bazel_skylib 1.7.0 (workspace; bzlmod already specifying that version)
103+
* (deps) bazel_features 1.21.0; necessary for compatiblity with Bazel 8 rc3
104+
* (deps) stardoc 0.7.2 to support Bazel 8.
105+
106+
{#v1-0-0-fixed}
76107
### Fixed
77108
* (toolchains) stop depending on `uname` to get the value of the host platform.
78109
* (pypi): Correctly handle multiple versions of the same package in the requirements
79110
files which is useful when including different PyTorch builds (e.g. <pytorch+cpu> vs <pytorch+cu118> ) for different target platforms.
80111
Fixes ([2337](https://github.com/bazelbuild/rules_python/issues/2337)).
81-
82-
{#v0-0-0-added}
112+
* (uv): Correct the sha256sum for the `uv` binary for aarch64-apple-darwin.
113+
Fixes ([2411](https://github.com/bazelbuild/rules_python/issues/2411)).
114+
* (binaries/tests) ({obj}`--bootstrap_impl=scipt`) Using `sys.executable` will
115+
use the same `sys.path` setup as the calling binary.
116+
([2169](https://github.com/bazelbuild/rules_python/issues/2169)).
117+
* (workspace) Corrected protobuf's name to com_google_protobuf, the name is
118+
hardcoded in Bazel, WORKSPACE mode.
119+
* (pypi): {bzl:obj}`compile_pip_requirements` no longer fails on Windows when `--enable_runfiles` is not enabled.
120+
* (pypi): {bzl:obj}`compile_pip_requirements` now correctly updates files in the source tree on Windows when `--windows_enable_symlinks` is not enabled.
121+
* (repositories): Add libs/python3.lib and pythonXY.dll to the `libpython` target
122+
defined by a repository template. This enables stable ABI builds of Python extensions
123+
on Windows (by defining Py_LIMITED_API).
124+
* (rules) `py_test` and `py_binary` targets no longer incorrectly remove the
125+
first `sys.path` entry when using {obj}`--bootstrap_impl=script`
126+
127+
{#v1-0-0-added}
83128
### Added
84129
* (gazelle): Parser failures will now be logged to the terminal. Additional
85-
details can be logged by setting `GAZELLE_VERBOSE=1`.
130+
details can be logged by setting `RULES_PYTHON_GAZELLE_VERBOSE=1`.
86131
* (toolchains) allow users to select which variant of the support host toolchain
87132
they would like to use through
88133
`RULES_PYTHON_REPO_TOOLCHAIN_{VERSION}_{OS}_{ARCH}` env variable setting. For
89134
example, this allows one to use `freethreaded` python interpreter in the
90135
`repository_rule` to build a wheel from `sdist`.
91-
92-
{#v0-0-0-removed}
136+
* (toolchain) The python interpreters targeting `muslc` libc have been added
137+
for the latest toolchain versions for each minor Python version. You can control
138+
the toolchain selection by using the
139+
{bzl:obj}`//python/config_settings:py_linux_libc` build flag.
140+
* (providers) Added {obj}`py_runtime_info.site_init_template` and
141+
{obj}`PyRuntimeInfo.site_init_template` for specifying the template to use to
142+
initialize the interpreter via venv startup hooks.
143+
* (runfiles) (Bazel 7.4+) Added support for spaces and newlines in runfiles paths
144+
145+
{#v1-0-0-removed}
93146
### Removed
94-
* Nothing removed.
147+
* (pypi): Remove `pypi_install_dependencies` macro that has been included in
148+
{bzl:obj}`py_repositories` for a long time.
149+
* (bzlmod): Remove `DEFAULT_PYTHON_VERSION` from `interpreters.bzl` file. If
150+
you need the version, please use it from the `versions.bzl` file instead.
95151

96152
{#v0-40-0}
97153
## [0.40.0] - 2024-11-17
@@ -204,7 +260,7 @@ Other changes:
204260
* (bzlmod) The extension evaluation has been adjusted to always generate the
205261
same lock file irrespective if `experimental_index_url` is set by any module
206262
or not. To opt into this behavior, set
207-
{bzl:obj}`pip.parse.parse_all_requirements_files`, which will become the
263+
`pip.parse.parse_all_requirements_files`, which will become the
208264
default in future releases leading up to `1.0.0`. Fixes
209265
[#2268](https://github.com/bazelbuild/rules_python/issues/2268). A known
210266
issue is that it may break `bazel query` and in these use cases it is

DEVELOPING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ The fix being included is commit `deadbeef`.
5656
1. `git checkout -b release/0.37 0.37.0`
5757
1. `git push upstream release/0.37`
5858
1. `git cherry-pick -x deadbeef`
59-
1. Fix merge conflicts, if any. If `MODULE.bazel.lock` conflicts occur, then
60-
run `pre-commit run update-bzlmod-lockfiles -a`
59+
1. Fix merge conflicts, if any.
6160
1. `git cherry-pick --continue` (if applicable)
6261
1. `git push upstream`
6362

MODULE.bazel

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ module(
44
compatibility_level = 1,
55
)
66

7-
bazel_dep(name = "bazel_features", version = "1.9.1")
7+
bazel_dep(name = "bazel_features", version = "1.21.0")
88
bazel_dep(name = "bazel_skylib", version = "1.7.1")
9-
bazel_dep(name = "rules_cc", version = "0.0.14")
9+
bazel_dep(name = "rules_cc", version = "0.0.16")
1010
bazel_dep(name = "platforms", version = "0.0.4")
1111

1212
# Those are loaded only when using py_proto_library
@@ -54,7 +54,7 @@ register_toolchains("@pythons_hub//:all")
5454
#####################
5555
# Install twine for our own runfiles wheel publishing and allow bzlmod users to use it.
5656

57-
pip = use_extension("//python/private/pypi:pip.bzl", "pip_internal")
57+
pip = use_extension("//python/extensions:pip.bzl", "pip")
5858
pip.parse(
5959
# NOTE @aignas 2024-10-26: We have an integration test that depends on us
6060
# being able to build sdists for this hub, so explicitly set this to False.
@@ -71,10 +71,10 @@ pip.parse(
7171
use_repo(pip, "rules_python_publish_deps")
7272

7373
# Not a dev dependency to allow usage of //sphinxdocs code, which refers to stardoc repos.
74-
bazel_dep(name = "stardoc", version = "0.7.1", repo_name = "io_bazel_stardoc")
74+
bazel_dep(name = "stardoc", version = "0.7.2", repo_name = "io_bazel_stardoc")
7575

7676
# ===== DEV ONLY DEPS AND SETUP BELOW HERE =====
77-
bazel_dep(name = "rules_bazel_integration_test", version = "0.26.1", dev_dependency = True)
77+
bazel_dep(name = "rules_bazel_integration_test", version = "0.27.0", dev_dependency = True)
7878
bazel_dep(name = "rules_testing", version = "0.6.0", dev_dependency = True)
7979
bazel_dep(name = "rules_shell", version = "0.3.0", dev_dependency = True)
8080
bazel_dep(name = "rules_multirun", version = "0.9.0", dev_dependency = True)

WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ workspace(name = "rules_python")
1717
# Everything below this line is used only for developing rules_python. Users
1818
# should not copy it to their WORKSPACE.
1919

20-
load("//:internal_deps.bzl", "rules_python_internal_deps")
20+
load("//:internal_dev_deps.bzl", "rules_python_internal_deps")
2121

2222
rules_python_internal_deps()
2323

@@ -37,7 +37,7 @@ load("@stardoc_maven//:defs.bzl", stardoc_pinned_maven_install = "pinned_maven_i
3737

3838
stardoc_pinned_maven_install()
3939

40-
load("//:internal_setup.bzl", "rules_python_internal_setup")
40+
load("//:internal_dev_setup.bzl", "rules_python_internal_setup")
4141

4242
rules_python_internal_setup()
4343

docs/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ _TARGET_COMPATIBLE_WITH = select({
3636
"@platforms//os:linux": [],
3737
"@platforms//os:macos": [],
3838
"//conditions:default": ["@platforms//:incompatible"],
39-
}) if IS_BAZEL_7_OR_HIGHER else ["@platforms//:incompatible"]
39+
}) if BZLMOD_ENABLED else ["@platforms//:incompatible"]
4040

4141
# See README.md for instructions. Short version:
4242
# * `bazel run //docs:docs.serve` in a separate terminal

docs/environment-variables.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,9 @@ stderr.
5656

5757
When `1`, debug information about coverage behavior is printed to stderr.
5858
:::
59+
60+
61+
:::{envvar} RULES_PYTHON_GAZELLE_VERBOSE
62+
63+
When `1`, debug information from gazelle is printed to stderr.
64+
:::

0 commit comments

Comments
 (0)