Skip to content

Commit 6650294

Browse files
kweinmeisterpartheagcf-owl-bot[bot]
authored
chore: Update api_shortname in .repo-metadata.json (#332)
* Update api_shortname in .repo-metadata.json * chore: Update api_shortname in .repo-metadata.json * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix replacement in owlbot.py * fix indent * restore coverage at 100% Co-authored-by: Anthonios Partheniou <partheniou@google.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 0cff9fc commit 6650294

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

packages/google-cloud-translate/.repo-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "translation",
2+
"name": "translate",
33
"name_pretty": "Cloud Translation",
44
"product_documentation": "https://cloud.google.com/translate/docs/",
55
"client_documentation": "https://cloud.google.com/python/docs/reference/translation/latest",

packages/google-cloud-translate/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def cover(session):
175175
test runs (not system test runs), and then erases coverage data.
176176
"""
177177
session.install("coverage", "pytest-cov")
178-
session.run("coverage", "report", "--show-missing", "--fail-under=99")
178+
session.run("coverage", "report", "--show-missing", "--fail-under=100")
179179

180180
session.run("coverage", "erase")
181181

packages/google-cloud-translate/owlbot.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,26 +41,22 @@
4141
"translation.py",
4242
]
4343

44+
s.replace(library / ".coveragerc",
45+
"""google/cloud/translate/__init__.py""",
46+
"""google/__init__.py
47+
google/cloud/__init__.py
48+
google/cloud/translate/__init__.py""",
49+
)
4450
s.move(library, excludes=excludes)
4551

4652
s.remove_staging_dirs()
4753

48-
s.replace(".coveragerc",
49-
"""omit =
50-
google/cloud/translate/__init__.py""",
51-
"""omit =
52-
google/__init__.py
53-
google/cloud/__init__.py
54-
google/cloud/translate/__init__.py""",
55-
)
56-
5754
# ----------------------------------------------------------------------------
5855
# Add templated files
5956
# ----------------------------------------------------------------------------
6057
templated_files = common.py_library(
6158
samples=True,
6259
microgenerator=True,
63-
cov_level=99,
6460
)
6561
s.move(templated_files, excludes=[".coveragerc"]) # microgenerator has a good .coveragerc file
6662

0 commit comments

Comments
 (0)