Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cbac8dd

Browse filesBrowse files
authored
docs: Fix a few typos in various docs and comments (bazel-contrib#1480)
These were flagged by a spell checker when importing the code to Google
1 parent f5d01c7 commit cbac8dd
Copy full SHA for cbac8dd

File tree

Expand file treeCollapse file tree

8 files changed

+10
-10
lines changed
Filter options
Expand file treeCollapse file tree

8 files changed

+10
-10
lines changed

‎docs/py_cc_toolchain_info.md

Copy file name to clipboardExpand all lines: docs/py_cc_toolchain_info.md
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/py_console_script_binary.md

Copy file name to clipboardExpand all lines: docs/py_console_script_binary.md
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎python/entry_points/py_console_script_binary.bzl

Copy file name to clipboardExpand all lines: python/entry_points/py_console_script_binary.bzl
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ py_console_script_binary(
5959
)
6060
```
6161
62-
Alternatively, the the `py_console_script_binary.binary_rule` arg can be passed
62+
Alternatively, the `py_console_script_binary.binary_rule` arg can be passed
6363
the version-bound `py_binary` symbol, or any other `py_binary`-compatible rule
6464
of your choosing:
6565
```starlark

‎python/private/common/common.bzl

Copy file name to clipboardExpand all lines: python/private/common/common.bzl
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def create_py_info(ctx, *, direct_sources, imports):
355355
transitive_sources_depsets = [] # list of depsets
356356
transitive_sources_files = [] # list of Files
357357
for target in ctx.attr.deps:
358-
# PyInfo may not be present for e.g. cc_library rules.
358+
# PyInfo may not be present e.g. cc_library rules.
359359
if PyInfo in target:
360360
info = target[PyInfo]
361361
transitive_sources_depsets.append(info.transitive_sources)

‎python/private/common/py_executable_bazel.bzl

Copy file name to clipboardExpand all lines: python/private/common/py_executable_bazel.bzl
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def _create_executable(
203203

204204
extra_files_to_build = []
205205

206-
# NOTE: --build_python_zip defauls to true on Windows
206+
# NOTE: --build_python_zip defaults to true on Windows
207207
build_zip_enabled = ctx.fragments.py.build_python_zip
208208

209209
# When --build_python_zip is enabled, then the zip file becomes
@@ -260,7 +260,7 @@ def _create_executable(
260260
# Double check this just to make sure.
261261
if not is_windows or not build_zip_enabled:
262262
fail(("Should not occur: The non-executable-zip and " +
263-
"non-boostrap-template case should have windows and zip " +
263+
"non-bootstrap-template case should have windows and zip " +
264264
"both true, but got " +
265265
"is_windows={is_windows} " +
266266
"build_zip_enabled={build_zip_enabled}").format(

‎python/private/py_cc_toolchain_info.bzl

Copy file name to clipboardExpand all lines: python/private/py_cc_toolchain_info.bzl
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ PyCcToolchainInfo = provider(
3333
3434
When consuming this map, it's suggested to use `providers_map.values()` to
3535
return all providers; or copy the map and filter out or replace keys as
36-
appropriate. Note that any keys begining with `_` (underscore) are
36+
appropriate. Note that any keys beginning with `_` (underscore) are
3737
considered private and should be forward along as-is (this better allows
3838
e.g. `:current_py_cc_headers` to act as the underlying headers target it
3939
represents).

‎python/private/py_console_script_gen.py

Copy file name to clipboardExpand all lines: python/private/py_console_script_gen.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
The mitigation strategy is to remove the first entry in the `sys.path` if it does not have `.runfiles` and it seems
2929
to fix the behaviour of console_scripts under `bazel run`.
3030
31-
This would not happen if we created an console_script binary in the root of an external repository, e.g.
31+
This would not happen if we created a console_script binary in the root of an external repository, e.g.
3232
`@pypi_pylint//` because the path for the external repository is already in the runfiles directory.
3333
"""
3434

@@ -102,7 +102,7 @@ def run(
102102
console_scripts = dict(config["console_scripts"])
103103
except KeyError:
104104
raise RuntimeError(
105-
f"The package does not provide any console_scripts in it's {_ENTRY_POINTS_TXT}"
105+
f"The package does not provide any console_scripts in its {_ENTRY_POINTS_TXT}"
106106
)
107107

108108
if console_script:

‎tests/entry_points/py_console_script_gen_test.py

Copy file name to clipboardExpand all lines: tests/entry_points/py_console_script_gen_test.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_no_console_scripts_error(self):
5050
)
5151

5252
self.assertEqual(
53-
"The package does not provide any console_scripts in it's entry_points.txt",
53+
"The package does not provide any console_scripts in its entry_points.txt",
5454
cm.exception.args[0],
5555
)
5656

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.