From e49d9faf382363a65d84e29be0259d6d91186f82 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 8 Nov 2021 11:02:10 -0500 Subject: [PATCH] chore: delete owlbot.py (#100) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: delete owlbot.py * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- packages/google-area120-tables/docs/index.rst | 6 +- packages/google-area120-tables/noxfile.py | 2 +- packages/google-area120-tables/owlbot.py | 66 ------------------- 3 files changed, 5 insertions(+), 69 deletions(-) delete mode 100644 packages/google-area120-tables/owlbot.py diff --git a/packages/google-area120-tables/docs/index.rst b/packages/google-area120-tables/docs/index.rst index 023e6483a653..a8bcba649b36 100644 --- a/packages/google-area120-tables/docs/index.rst +++ b/packages/google-area120-tables/docs/index.rst @@ -2,6 +2,7 @@ .. include:: multiprocessing.rst + API Reference ------------- .. toctree:: @@ -10,12 +11,13 @@ API Reference tables_v1alpha1/services tables_v1alpha1/types + Changelog --------- For a list of all ``google-area120-tables`` releases: .. toctree:: - :maxdepth: 2 + :maxdepth: 2 - changelog + changelog diff --git a/packages/google-area120-tables/noxfile.py b/packages/google-area120-tables/noxfile.py index f041f1f5a4ae..2a2001c49998 100644 --- a/packages/google-area120-tables/noxfile.py +++ b/packages/google-area120-tables/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=98") + session.run("coverage", "report", "--show-missing", "--fail-under=100") session.run("coverage", "erase") diff --git a/packages/google-area120-tables/owlbot.py b/packages/google-area120-tables/owlbot.py deleted file mode 100644 index 4e4adf098621..000000000000 --- a/packages/google-area120-tables/owlbot.py +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""This script is used to synthesize generated parts of this library.""" -import os - -import synthtool as s -import synthtool.gcp as gcp -from synthtool.languages import python - -common = gcp.CommonTemplates() - -default_version = "v1alpha1" - -for library in s.get_staging_dirs(default_version): - s.move( - library, - excludes=[ - "setup.py", - "README.rst", - "docs/index.rst", - "scripts/fixup_tables_v1alpha1_keywords.py", - ], - ) - -s.remove_staging_dirs() - -# ---------------------------------------------------------------------------- -# Add templated files -# ---------------------------------------------------------------------------- -templated_files = common.py_library(cov_level=98, microgenerator=True) - -s.move( - templated_files, excludes=[ - ".coveragerc" - ] -) # the microgenerator has a good coveragerc file - -python.py_samples(skip_readmes=True) - -# fix coverage target -s.replace( - "noxfile.py", - """[""]--cov=google/cloud["'],""", - '''"--cov=google/area120",''', -) - -# Block pushing non-cloud libraries to Cloud RAD -s.replace( - ".kokoro/docs/common.cfg", - r'value: "docs-staging-v2"', - r'value: "docs-staging-v2-staging"' -) - -s.shell.run(["nox", "-s", "blacken"], hide_output=False)