From 87427b9e477d0142e63a20edbb88795edd2058ec Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Tue, 26 Oct 2021 12:14:45 -0400 Subject: [PATCH] chore: delete owlbot.py (#74) 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 --- docs/index.rst | 6 ++++-- noxfile.py | 2 +- owlbot.py | 54 -------------------------------------------------- 3 files changed, 5 insertions(+), 57 deletions(-) delete mode 100644 owlbot.py diff --git a/docs/index.rst b/docs/index.rst index ca0a0eb..9765373 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2,6 +2,7 @@ .. include:: multiprocessing.rst + API Reference ------------- .. toctree:: @@ -10,12 +11,13 @@ API Reference servicemanagement_v1/services servicemanagement_v1/types + Changelog --------- For a list of all ``google-cloud-service-management`` releases: .. toctree:: - :maxdepth: 2 + :maxdepth: 2 - changelog + changelog diff --git a/noxfile.py b/noxfile.py index de41c6b..2a2001c 100644 --- a/noxfile.py +++ b/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/owlbot.py b/owlbot.py deleted file mode 100644 index a4169ac..0000000 --- a/owlbot.py +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 2021 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 = "v1" - -for library in s.get_staging_dirs(default_version): - s.move(library, excludes=["setup.py", "README.rst", "docs/index.rst"]) - - # Fix DeprecationWarning - # Fix incorrect DeprecationWarning - # Fixed in https://github.com/googleapis/gapic-generator-python/pull/943 - s.replace( - "google/**/*client.py", - "warnings\.DeprecationWarning", - "DeprecationWarning" - ) - -s.remove_staging_dirs() - -# ---------------------------------------------------------------------------- -# Add templated files -# ---------------------------------------------------------------------------- - -templated_files = common.py_library(cov_level=99, microgenerator=True) -python.py_samples(skip_readmes=True) - -# the microgenerator has a good coveragerc file -excludes = [".coveragerc"] -s.move( - templated_files, excludes=excludes -) - -s.shell.run(["nox", "-s", "blacken"], hide_output=False)