Skip to content

Commit 2716908

Browse files
committed
Fix typos discovered by codespell
1 parent aa69fb7 commit 2716908

File tree

42 files changed

+66
-66
lines changed

Some content is hidden

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

42 files changed

+66
-66
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@
279279
- Prefer https URLs for cloning from GitHub, add SYNTHTOOL_USE_SSH to use ssh ([#120](https://github.com/googleapis/synthtool/pull/120))
280280
- Drop the PR template for nodejs ([#117](https://github.com/googleapis/synthtool/pull/117))
281281
- Update github issue templates ([#116](https://github.com/googleapis/synthtool/pull/116))
282-
- Incude build/ in eslint ignore ([#115](https://github.com/googleapis/synthtool/pull/115))
282+
- Include build/ in eslint ignore ([#115](https://github.com/googleapis/synthtool/pull/115))
283283
- feat: make npm link work for system tests ([#114](https://github.com/googleapis/synthtool/pull/114))
284284
- fix: update nodejs issue templates ([#112](https://github.com/googleapis/synthtool/pull/112))
285285
- feat(node): add node11 test env ([#110](https://github.com/googleapis/synthtool/pull/110))

synthtool/gcp/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def _load_repo_metadata(
530530
* `api_id` - The API ID associated with the service. Fully qualified identifier use to
531531
enable a service in the cloud platform (e.g. monitoring.googleapis.com)
532532
* `requires_billing` - Whether or not the API requires billing to be configured on the
533-
customer's acocunt
533+
customer's account
534534
535535
Args:
536536
metadata_file (str, optional): Path to the metadata json file

synthtool/gcp/gapic_bazel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def _generate_code(
223223
if not proto_output_path:
224224
proto_output_path = output_dir / "protos"
225225
if language == "python":
226-
# place protos alongsize the *_pb2.py files
226+
# place protos alongside the *_pb2.py files
227227
proto_output_path = (
228228
output_dir / f"google/cloud/{service}_{version}/proto"
229229
)

synthtool/gcp/gapic_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def _generate_code(
158158
# appropriate place.
159159
proto_output_path = genfiles / "protos"
160160
if language == "python":
161-
# place protos alongsize the *_pb2.py files
161+
# place protos alongside the *_pb2.py files
162162
proto_output_path = genfiles / f"google/cloud/{service}_{version}/proto"
163163
os.makedirs(proto_output_path, exist_ok=True)
164164

synthtool/gcp/templates/python_samples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
## Python Samples for {{ metadata['repo']['name_pretty'] }}
55

6-
This directory contains samples for {{ metadata['repo']['name_pretty'] }}, which may be used as a refererence for how to use this product. {% if metadata['repo']['custom_content'] is defined %}
6+
This directory contains samples for {{ metadata['repo']['name_pretty'] }}, which may be used as a reference for how to use this product. {% if metadata['repo']['custom_content'] is defined %}
77
{{ metadata['repo']['custom_content']}}{% endif %}{% if metadata['repo']['samples']|length %}
88
Samples, quickstarts, and other documentation are available at <a href="{{ metadata['repo']['product_documentation'] }}">cloud.google.com</a>.
99
{% for sample in range(metadata['repo']['samples']|length) %}
@@ -18,7 +18,7 @@ Samples, quickstarts, and other documentation are available at <a href="{{ metad
1818

1919
To run this sample:
2020

21-
1. If this is your first time working with GCP products, you will need to set up [the Cloud SDK][cloud_sdk] or utilize [Google Cloud Shell][gcloud_shell]. This sample may [require authetication][authentication]{% if metadata['repo']['requires_billing'] %} and you will need to [enable billing][enable_billing]{% endif %}.
21+
1. If this is your first time working with GCP products, you will need to set up [the Cloud SDK][cloud_sdk] or utilize [Google Cloud Shell][gcloud_shell]. This sample may [require authentication][authentication]{% if metadata['repo']['requires_billing'] %} and you will need to [enable billing][enable_billing]{% endif %}.
2222

2323
1. Make a fork of this repo and clone the branch locally, then navigate to the sample directory you want to use.
2424

synthtool/languages/python_mono_repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def apply_client_specific_post_processing(
201201
== 0
202202
)
203203
if number_of_paths_with_replacements:
204-
# Ensure that the numner of paths where a replacement occurred matches the number of paths.
204+
# Ensure that the number of paths where a replacement occurred matches the number of paths.
205205
assert number_of_paths_with_replacements == len(
206206
replacement["paths"]
207207
)

synthtool/protos/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Synthtool and Autosynth Protocol
22

3-
**Synthtool** generates client library source code according to the currrent
3+
**Synthtool** generates client library source code according to the current
44
state of the source repo, and upstream repos like
55
[googleapis/googleapis](https://github.com/googleapis/googleapis).
66

synthtool/py_templating_instructions/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ Each sample in `samples` has the attributes:
2525
- `file` : The main file associated with this sample
2626
- `runnable` (Optional) : Either True/False, depending on whether this sample is made to be run by running the above file name, or not.
2727
- `custom_content` (Optional) : This is custom content that appears after all other information generated about the sample
28-
- `override_path` (Optional): If you would like to have a seperate README generate for this file in a different folder within the directory that holds the samples, ex. a folder named `quickstart`, specify that relative path here.
28+
- `override_path` (Optional): If you would like to have a separate README generate for this file in a different folder within the directory that holds the samples, ex. a folder named `quickstart`, specify that relative path here.
2929
If multiple samples have the same override path, the README in that folder will contain info for all those samples.

synthtool/sources/templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def language_pretty(input: str) -> str:
126126

127127

128128
def slugify(input: str) -> str:
129-
"""Converts Foo Bar into foo-bar, for use wih anchor links."""
129+
"""Converts Foo Bar into foo-bar, for use with anchor links."""
130130
input = re.sub(r"([() ]+)", "-", input.lower())
131131
return re.sub(r"-$", "", input)
132132

tests/fixtures/nodejs-dlp-with-staging/owl-bot-staging/v2/protos/google/privacy/dlp/v2/dlp.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ service DlpService {
146146
option (google.api.method_signature) = "parent";
147147
}
148148

149-
// Creates an InspectTemplate for re-using frequently used configuration
149+
// Creates an InspectTemplate for reusing frequently used configuration
150150
// for inspecting content, images, and storage.
151151
// See https://cloud.google.com/dlp/docs/creating-templates to learn more.
152152
rpc CreateInspectTemplate(CreateInspectTemplateRequest) returns (InspectTemplate) {
@@ -245,7 +245,7 @@ service DlpService {
245245
option (google.api.method_signature) = "name";
246246
}
247247

248-
// Creates a DeidentifyTemplate for re-using frequently used configuration
248+
// Creates a DeidentifyTemplate for reusing frequently used configuration
249249
// for de-identifying content, images, and storage.
250250
// See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
251251
// more.

0 commit comments

Comments
 (0)