From 66502940281ed49200ec76fa778169729078e37a Mon Sep 17 00:00:00 2001 From: Karl Weinmeister <11586922+kweinmeister@users.noreply.github.com> Date: Sat, 26 Feb 2022 12:45:41 -0600 Subject: [PATCH] chore: Update api_shortname in .repo-metadata.json (#332) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 Co-authored-by: Owl Bot --- .../google-cloud-translate/.repo-metadata.json | 2 +- packages/google-cloud-translate/noxfile.py | 2 +- packages/google-cloud-translate/owlbot.py | 16 ++++++---------- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/packages/google-cloud-translate/.repo-metadata.json b/packages/google-cloud-translate/.repo-metadata.json index 58ab0ebacf85..acc1eb812040 100644 --- a/packages/google-cloud-translate/.repo-metadata.json +++ b/packages/google-cloud-translate/.repo-metadata.json @@ -1,5 +1,5 @@ { - "name": "translation", + "name": "translate", "name_pretty": "Cloud Translation", "product_documentation": "https://cloud.google.com/translate/docs/", "client_documentation": "https://cloud.google.com/python/docs/reference/translation/latest", diff --git a/packages/google-cloud-translate/noxfile.py b/packages/google-cloud-translate/noxfile.py index de41c6bf9af5..2a2001c49998 100644 --- a/packages/google-cloud-translate/noxfile.py +++ b/packages/google-cloud-translate/noxfile.py @@ -175,7 +175,7 @@ def cover(session): test runs (not system test runs), and then erases coverage data. """ session.install("coverage", "pytest-cov") - session.run("coverage", "report", "--show-missing", "--fail-under=99") + session.run("coverage", "report", "--show-missing", "--fail-under=100") session.run("coverage", "erase") diff --git a/packages/google-cloud-translate/owlbot.py b/packages/google-cloud-translate/owlbot.py index 5114aaf7d666..d3ef7ea04c49 100644 --- a/packages/google-cloud-translate/owlbot.py +++ b/packages/google-cloud-translate/owlbot.py @@ -41,26 +41,22 @@ "translation.py", ] + s.replace(library / ".coveragerc", + """google/cloud/translate/__init__.py""", + """google/__init__.py + google/cloud/__init__.py + google/cloud/translate/__init__.py""", + ) s.move(library, excludes=excludes) s.remove_staging_dirs() -s.replace(".coveragerc", - """omit = - google/cloud/translate/__init__.py""", - """omit = - google/__init__.py - google/cloud/__init__.py - google/cloud/translate/__init__.py""", -) - # ---------------------------------------------------------------------------- # Add templated files # ---------------------------------------------------------------------------- templated_files = common.py_library( samples=True, microgenerator=True, - cov_level=99, ) s.move(templated_files, excludes=[".coveragerc"]) # microgenerator has a good .coveragerc file