Skip to content

Commit

Permalink
chore: Update api_shortname in .repo-metadata.json (#332)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people authored Feb 26, 2022
1 parent 0cff9fc commit 6650294
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-translate/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-translate/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
16 changes: 6 additions & 10 deletions packages/google-cloud-translate/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6650294

Please sign in to comment.