Skip to content

Commit

Permalink
chore: remove obsolete replacement in owlbot.py (#241)
Browse files Browse the repository at this point in the history
* chore: remove obsolete replacement in owlbot.py

This PR removes a replacement in owlbot.py which is obsolete

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
parthea and gcf-owl-bot[bot] authored Aug 15, 2023
1 parent febef00 commit 64c60e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ jobs:
- name: Report coverage results
run: |
coverage combine .coverage-results/.coverage*
coverage report --show-missing --fail-under=99
coverage report --show-missing --fail-under=100
2 changes: 1 addition & 1 deletion packages/google-cloud-assured-workloads/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,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
12 changes: 1 addition & 11 deletions packages/google-cloud-assured-workloads/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,12 @@
s.move([library], excludes=["**/gapic_version.py"])
s.remove_staging_dirs()

# Work around gapic generator bug. https://github.com/googleapis/gapic-generator-python/issues/1083
s.replace(
"google/cloud/**/types/assuredworkloads.py",
"""Signed Access Approvals \(SAA\) enrollment response.\n
Attributes""",
"""Signed Access Approvals (SAA) enrollment response.\n
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\n
Attributes"""
)

# ----------------------------------------------------------------------------
# Add templated files
# ----------------------------------------------------------------------------

templated_files = gcp.CommonTemplates().py_library(
cov_level=99,
cov_level=100,
microgenerator=True,
versions=gcp.common.detect_versions(path="./google", default_first=True),
)
Expand Down

0 comments on commit 64c60e5

Please sign in to comment.