From 3f6b9445a9182fe5f08c5e8b6e7ea71cb2e32dd5 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 29 Jan 2020 18:29:33 -0800 Subject: [PATCH] docs(webrisk): add 2.7 deprecation warning; bump copyright year to 2020; use templated noxfile (via synth) (#10053) --- packages/google-cloud-webrisk/docs/conf.py | 4 +- .../google-cloud-webrisk/google/__init__.py | 2 +- .../google/cloud/__init__.py | 2 +- .../google/cloud/webrisk.py | 8 +- .../google/cloud/webrisk_v1beta1/__init__.py | 19 ++-- .../cloud/webrisk_v1beta1/gapic/enums.py | 2 +- ...eb_risk_service_v1_beta1_grpc_transport.py | 6 +- .../gapic/web_risk_service_v1_beta1_client.py | 14 +-- .../webrisk_v1beta1/proto/webrisk_pb2.py | 38 +++---- .../google/cloud/webrisk_v1beta1/types.py | 10 +- packages/google-cloud-webrisk/noxfile.py | 62 ++++++------ packages/google-cloud-webrisk/setup.py | 63 ++++++------ packages/google-cloud-webrisk/synth.metadata | 98 +++++++++++++++++-- packages/google-cloud-webrisk/synth.py | 4 +- ...eb_risk_service_v1_beta1_client_v1beta1.py | 2 +- 15 files changed, 210 insertions(+), 124 deletions(-) diff --git a/packages/google-cloud-webrisk/docs/conf.py b/packages/google-cloud-webrisk/docs/conf.py index 4b96fcc8f2bf..5a30b7a826c3 100644 --- a/packages/google-cloud-webrisk/docs/conf.py +++ b/packages/google-cloud-webrisk/docs/conf.py @@ -264,7 +264,7 @@ u"google-cloud-webrisk Documentation", author, "manual", - ), + ) ] # The name of an image file (relative to this directory) to place at the top of @@ -320,7 +320,7 @@ "google-cloud-webrisk", "GAPIC library for the {metadata.shortName} v1beta1 service", "APIs", - ), + ) ] # Documents to append as an appendix to all manuals. diff --git a/packages/google-cloud-webrisk/google/__init__.py b/packages/google-cloud-webrisk/google/__init__.py index 8fcc60e2b9c6..9a1b64a6d586 100644 --- a/packages/google-cloud-webrisk/google/__init__.py +++ b/packages/google-cloud-webrisk/google/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/packages/google-cloud-webrisk/google/cloud/__init__.py b/packages/google-cloud-webrisk/google/cloud/__init__.py index 8fcc60e2b9c6..9a1b64a6d586 100644 --- a/packages/google-cloud-webrisk/google/cloud/__init__.py +++ b/packages/google-cloud-webrisk/google/cloud/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk.py b/packages/google-cloud-webrisk/google/cloud/webrisk.py index 5ed7f8340456..e2971fdc4af6 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. @@ -22,8 +22,4 @@ from google.cloud.webrisk_v1beta1 import types -__all__ = ( - "enums", - "types", - "WebRiskServiceV1Beta1Client", -) +__all__ = ("enums", "types", "WebRiskServiceV1Beta1Client") diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/__init__.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/__init__.py index 823fd3656c38..bf228d20b05b 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/__init__.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. @@ -16,12 +16,23 @@ from __future__ import absolute_import +import sys +import warnings from google.cloud.webrisk_v1beta1 import types from google.cloud.webrisk_v1beta1.gapic import enums from google.cloud.webrisk_v1beta1.gapic import web_risk_service_v1_beta1_client +if sys.version_info[:2] == (2, 7): + message = ( + "A future version of this library will drop support for Python 2.7." + "More details about Python 2 support for Google Cloud Client Libraries" + "can be found at https://cloud.google.com/python/docs/python2-sunset/" + ) + warnings.warn(message, DeprecationWarning) + + class WebRiskServiceV1Beta1Client( web_risk_service_v1_beta1_client.WebRiskServiceV1Beta1Client ): @@ -29,8 +40,4 @@ class WebRiskServiceV1Beta1Client( enums = enums -__all__ = ( - "enums", - "types", - "WebRiskServiceV1Beta1Client", -) +__all__ = ("enums", "types", "WebRiskServiceV1Beta1Client") diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/enums.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/enums.py index 07580b04e6bf..42fad3e37ef3 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/enums.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/enums.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/transports/web_risk_service_v1_beta1_grpc_transport.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/transports/web_risk_service_v1_beta1_grpc_transport.py index 8e78eafa37b0..cd461a8ac098 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/transports/web_risk_service_v1_beta1_grpc_transport.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/transports/web_risk_service_v1_beta1_grpc_transport.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. @@ -53,7 +53,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive.", + "The `channel` and `credentials` arguments are mutually " "exclusive." ) # Create the channel. @@ -74,7 +74,7 @@ def __init__( self._stubs = { "web_risk_service_v1_beta1_stub": webrisk_pb2_grpc.WebRiskServiceV1Beta1Stub( channel - ), + ) } @classmethod diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/web_risk_service_v1_beta1_client.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/web_risk_service_v1_beta1_client.py index 66e5179318f5..73c30ef47930 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/web_risk_service_v1_beta1_client.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/web_risk_service_v1_beta1_client.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. @@ -36,7 +36,7 @@ from google.cloud.webrisk_v1beta1.proto import webrisk_pb2_grpc -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-webrisk",).version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-webrisk").version class WebRiskServiceV1Beta1Client(object): @@ -159,12 +159,12 @@ def __init__( self.transport = transport else: self.transport = web_risk_service_v1_beta1_grpc_transport.WebRiskServiceV1Beta1GrpcTransport( - address=api_endpoint, channel=channel, credentials=credentials, + address=api_endpoint, channel=channel, credentials=credentials ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, + gapic_version=_GAPIC_LIBRARY_VERSION ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION @@ -175,7 +175,7 @@ def __init__( # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config["interfaces"][self._INTERFACE_NAME], + client_config["interfaces"][self._INTERFACE_NAME] ) # Save a dictionary of cached API call functions. @@ -316,7 +316,7 @@ def search_uris( client_info=self._client_info, ) - request = webrisk_pb2.SearchUrisRequest(uri=uri, threat_types=threat_types,) + request = webrisk_pb2.SearchUrisRequest(uri=uri, threat_types=threat_types) return self._inner_api_calls["search_uris"]( request, retry=retry, timeout=timeout, metadata=metadata ) @@ -382,7 +382,7 @@ def search_hashes( ) request = webrisk_pb2.SearchHashesRequest( - threat_types=threat_types, hash_prefix=hash_prefix, + threat_types=threat_types, hash_prefix=hash_prefix ) return self._inner_api_calls["search_hashes"]( request, retry=retry, timeout=timeout, metadata=metadata diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/proto/webrisk_pb2.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/proto/webrisk_pb2.py index c4e7f392a921..be27c4735f57 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/proto/webrisk_pb2.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/proto/webrisk_pb2.py @@ -281,7 +281,7 @@ ), ], extensions=[], - nested_types=[_COMPUTETHREATLISTDIFFREQUEST_CONSTRAINTS,], + nested_types=[_COMPUTETHREATLISTDIFFREQUEST_CONSTRAINTS], enum_types=[], serialized_options=None, is_extendable=False, @@ -317,7 +317,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -448,8 +448,8 @@ ), ], extensions=[], - nested_types=[_COMPUTETHREATLISTDIFFRESPONSE_CHECKSUM,], - enum_types=[_COMPUTETHREATLISTDIFFRESPONSE_RESPONSETYPE,], + nested_types=[_COMPUTETHREATLISTDIFFRESPONSE_CHECKSUM], + enum_types=[_COMPUTETHREATLISTDIFFRESPONSE_RESPONSETYPE], serialized_options=None, is_extendable=False, syntax="proto3", @@ -597,10 +597,10 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], - nested_types=[_SEARCHURISRESPONSE_THREATURI,], + nested_types=[_SEARCHURISRESPONSE_THREATURI], enum_types=[], serialized_options=None, is_extendable=False, @@ -788,7 +788,7 @@ ), ], extensions=[], - nested_types=[_SEARCHHASHESRESPONSE_THREATHASH,], + nested_types=[_SEARCHHASHESRESPONSE_THREATHASH], enum_types=[], serialized_options=None, is_extendable=False, @@ -938,7 +938,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ), + ) ], extensions=[], nested_types=[], @@ -1344,7 +1344,8 @@ dict( DESCRIPTOR=_SEARCHHASHESREQUEST, __module__="google.cloud.webrisk_v1beta1.proto.webrisk_pb2", - __doc__="""Request to return full hashes matched by the provided hash prefixes. + __doc__="""Request to return full hashes matched by the provided hash + prefixes. Attributes: @@ -1411,8 +1412,9 @@ dict( DESCRIPTOR=_THREATENTRYADDITIONS, __module__="google.cloud.webrisk_v1beta1.proto.webrisk_pb2", - __doc__="""Contains the set of entries to add to a local database. May contain a - combination of compressed and raw data in a single response. + __doc__="""Contains the set of entries to add to a local database. + May contain a combination of compressed and raw data in a single + response. Attributes: @@ -1436,7 +1438,8 @@ dict( DESCRIPTOR=_THREATENTRYREMOVALS, __module__="google.cloud.webrisk_v1beta1.proto.webrisk_pb2", - __doc__="""Contains the set of entries to remove from a local database. + __doc__="""Contains the set of entries to remove from a local + database. Attributes: @@ -1479,9 +1482,10 @@ dict( DESCRIPTOR=_RAWHASHES, __module__="google.cloud.webrisk_v1beta1.proto.webrisk_pb2", - __doc__="""The uncompressed threat entries in hash format. Hashes can be anywhere - from 4 to 32 bytes in size. A large majority are 4 bytes, but some - hashes are lengthened if they collide with the hash of a popular URI. + __doc__="""The uncompressed threat entries in hash format. Hashes can + be anywhere from 4 to 32 bytes in size. A large majority are 4 bytes, + but some hashes are lengthened if they collide with the hash of a + popular URI. Used for sending ThreatEntryAdditons to clients that do not support compression, or when sending non-4-byte hashes to clients that do @@ -1509,8 +1513,8 @@ dict( DESCRIPTOR=_RICEDELTAENCODING, __module__="google.cloud.webrisk_v1beta1.proto.webrisk_pb2", - __doc__="""The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes - or compressed removal indices. + __doc__="""The Rice-Golomb encoded data. Used for sending compressed + 4-byte hashes or compressed removal indices. Attributes: diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/types.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/types.py index 28ce703af790..17bf6f0e06ba 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/types.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/types.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. @@ -24,13 +24,9 @@ from google.protobuf import timestamp_pb2 -_shared_modules = [ - timestamp_pb2, -] +_shared_modules = [timestamp_pb2] -_local_modules = [ - webrisk_pb2, -] +_local_modules = [webrisk_pb2] names = [] diff --git a/packages/google-cloud-webrisk/noxfile.py b/packages/google-cloud-webrisk/noxfile.py index 9fedd1bae939..7949a4e3925a 100644 --- a/packages/google-cloud-webrisk/noxfile.py +++ b/packages/google-cloud-webrisk/noxfile.py @@ -14,6 +14,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Generated by synthtool. DO NOT EDIT! + from __future__ import absolute_import import os import shutil @@ -22,6 +24,12 @@ LOCAL_DEPS = (os.path.join("..", "api_core"), os.path.join("..", "core")) +BLACK_VERSION = "black==19.3b0" +BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"] + +if os.path.exists("samples"): + BLACK_PATHS.append("samples") + @nox.session(python="3.7") def lint(session): @@ -30,14 +38,8 @@ def lint(session): Returns a failure if the linters find linting errors or sufficiently serious code quality issues. """ - session.install("flake8", "black", *LOCAL_DEPS) - session.run( - "black", - "--check", - "google", - "tests", - "docs", - ) + session.install("flake8", BLACK_VERSION, *LOCAL_DEPS) + session.run("black", "--check", *BLACK_PATHS) session.run("flake8", "google", "tests") @@ -46,18 +48,13 @@ def blacken(session): """Run black. Format code to uniform standard. - + This currently uses Python 3.6 due to the automated Kokoro run of synthtool. That run uses an image that doesn't have 3.6 installed. Before updating this check the state of the `gcp_ubuntu_config` we use for that Kokoro run. """ - session.install("black") - session.run( - "black", - "google", - "tests", - "docs", - ) + session.install(BLACK_VERSION) + session.run("black", *BLACK_PATHS) @nox.session(python="3.7") @@ -83,13 +80,13 @@ def default(session): "--cov-append", "--cov-config=.coveragerc", "--cov-report=", - "--cov-fail-under=97", + "--cov-fail-under=0", os.path.join("tests", "unit"), *session.posargs, ) -@nox.session(python=["2.7", "3.5", "3.6", "3.7"]) +@nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8"]) def unit(session): """Run the unit test suite.""" default(session) @@ -140,21 +137,24 @@ def cover(session): session.run("coverage", "erase") -@nox.session(python='3.6') + +@nox.session(python="3.7") def docs(session): - """Build the docs.""" + """Build the docs for this library.""" - session.install('sphinx', 'alabaster', 'recommonmark') - session.install('-e', '.') + session.install("-e", ".") + session.install("sphinx", "alabaster", "recommonmark") - shutil.rmtree(os.path.join('docs', '_build'), ignore_errors=True) + shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) session.run( - 'sphinx-build', - '-W', # warnings as errors - '-T', # show full traceback on exception - '-N', # no colors - '-b', 'html', - '-d', os.path.join('docs', '_build', 'doctrees', ''), - os.path.join('docs', ''), - os.path.join('docs', '_build', 'html', ''), + "sphinx-build", + "-W", # warnings as errors + "-T", # show full traceback on exception + "-N", # no colors + "-b", + "html", + "-d", + os.path.join("docs", "_build", "doctrees", ""), + os.path.join("docs", ""), + os.path.join("docs", "_build", "html", ""), ) diff --git a/packages/google-cloud-webrisk/setup.py b/packages/google-cloud-webrisk/setup.py index b3bab8c38394..e8bf140f22b8 100644 --- a/packages/google-cloud-webrisk/setup.py +++ b/packages/google-cloud-webrisk/setup.py @@ -20,39 +20,36 @@ # Package metadata. -name = 'google-cloud-webrisk' -description = 'Google Cloud Web Risk API client library' -version = '0.2.0' +name = "google-cloud-webrisk" +description = "Google Cloud Web Risk API client library" +version = "0.2.0" # Should be one of: # 'Development Status :: 3 - Alpha' # 'Development Status :: 4 - Beta' # 'Development Status :: 5 - Production/Stable' -release_status = 'Development Status :: 3 - Alpha' -dependencies = [ - 'google-api-core[grpc] >= 1.14.0, < 2.0.0dev', -] -extras = { -} +release_status = "Development Status :: 3 - Alpha" +dependencies = ["google-api-core[grpc] >= 1.14.0, < 2.0.0dev"] +extras = {} # Setup boilerplate below this line. package_root = os.path.abspath(os.path.dirname(__file__)) -readme_filename = os.path.join(package_root, 'README.rst') -with io.open(readme_filename, encoding='utf-8') as readme_file: +readme_filename = os.path.join(package_root, "README.rst") +with io.open(readme_filename, encoding="utf-8") as readme_file: readme = readme_file.read() # Only include packages under the 'google' namespace. Do not include tests, # benchmarks, etc. packages = [ - package for package in setuptools.find_packages() - if package.startswith('google')] + package for package in setuptools.find_packages() if package.startswith("google") +] # Determine which namespaces are needed. -namespaces = ['google'] -if 'google.cloud' in packages: - namespaces.append('google.cloud') +namespaces = ["google"] +if "google.cloud" in packages: + namespaces.append("google.cloud") setuptools.setup( @@ -60,30 +57,30 @@ version=version, description=description, long_description=readme, - author='Google LLC', - author_email='googleapis-packages@google.com', - license='Apache 2.0', - url='https://github.com/GoogleCloudPlatform/google-cloud-python', + author="Google LLC", + author_email="googleapis-packages@google.com", + license="Apache 2.0", + url="https://github.com/GoogleCloudPlatform/google-cloud-python", classifiers=[ release_status, - 'Intended Audience :: Developers', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Operating System :: OS Independent', - 'Topic :: Internet', + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache Software License", + "Programming Language :: Python", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Operating System :: OS Independent", + "Topic :: Internet", ], - platforms='Posix; MacOS X; Windows', + platforms="Posix; MacOS X; Windows", packages=packages, namespace_packages=namespaces, install_requires=dependencies, extras_require=extras, - python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*', + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", include_package_data=True, zip_safe=False, ) diff --git a/packages/google-cloud-webrisk/synth.metadata b/packages/google-cloud-webrisk/synth.metadata index 3aef7f02ab6b..ea1f15effde9 100644 --- a/packages/google-cloud-webrisk/synth.metadata +++ b/packages/google-cloud-webrisk/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-11-19T13:39:25.720125Z", + "updateTime": "2020-01-30T01:51:00.132441Z", "sources": [ { "generator": { "name": "artman", - "version": "0.42.1", - "dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57" + "version": "0.44.4", + "dockerImage": "googleapis/artman@sha256:19e945954fc960a4bdfee6cb34695898ab21a8cf0bac063ee39b91f00a1faec8" } }, { "git": { "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "d8dd7fe8d5304f7bd1c52207703d7f27d5328c5a", - "internalRef": "281088257" + "remote": "git@github.com:googleapis/googleapis.git", + "sha": "b491d07cadaae7cde5608321f913e5ca1459b32d", + "internalRef": "292245373" } }, { @@ -35,5 +35,91 @@ "config": "google/cloud/webrisk/artman_webrisk_v1beta1.yaml" } } + ], + "newFiles": [ + { + "path": "MANIFEST.in" + }, + { + "path": ".flake8" + }, + { + "path": "noxfile.py" + }, + { + "path": "setup.py" + }, + { + "path": ".coveragerc" + }, + { + "path": "setup.cfg" + }, + { + "path": "LICENSE" + }, + { + "path": "docs/conf.py" + }, + { + "path": "docs/_static/custom.css" + }, + { + "path": "docs/gapic/v1beta1/api.rst" + }, + { + "path": "docs/gapic/v1beta1/types.rst" + }, + { + "path": "docs/_templates/layout.html" + }, + { + "path": "google/__init__.py" + }, + { + "path": "google/cloud/__init__.py" + }, + { + "path": "google/cloud/webrisk.py" + }, + { + "path": "google/cloud/webrisk_v1beta1/types.py" + }, + { + "path": "google/cloud/webrisk_v1beta1/__init__.py" + }, + { + "path": "google/cloud/webrisk_v1beta1/gapic/__init__.py" + }, + { + "path": "google/cloud/webrisk_v1beta1/gapic/enums.py" + }, + { + "path": "google/cloud/webrisk_v1beta1/gapic/web_risk_service_v1_beta1_client.py" + }, + { + "path": "google/cloud/webrisk_v1beta1/gapic/web_risk_service_v1_beta1_client_config.py" + }, + { + "path": "google/cloud/webrisk_v1beta1/gapic/transports/web_risk_service_v1_beta1_grpc_transport.py" + }, + { + "path": "google/cloud/webrisk_v1beta1/gapic/transports/__init__.py" + }, + { + "path": "google/cloud/webrisk_v1beta1/proto/__init__.py" + }, + { + "path": "google/cloud/webrisk_v1beta1/proto/webrisk_pb2.py" + }, + { + "path": "google/cloud/webrisk_v1beta1/proto/webrisk.proto" + }, + { + "path": "google/cloud/webrisk_v1beta1/proto/webrisk_pb2_grpc.py" + }, + { + "path": "tests/unit/gapic/v1beta1/test_web_risk_service_v1_beta1_client_v1beta1.py" + } ] } \ No newline at end of file diff --git a/packages/google-cloud-webrisk/synth.py b/packages/google-cloud-webrisk/synth.py index ee6878a072db..0c1db20420ea 100644 --- a/packages/google-cloud-webrisk/synth.py +++ b/packages/google-cloud-webrisk/synth.py @@ -43,7 +43,7 @@ # ---------------------------------------------------------------------------- # Add templated files # ---------------------------------------------------------------------------- -templated_files = common.py_library(unit_cov_level=97, cov_level=100) -s.move(templated_files, excludes=["noxfile.py"]) +templated_files = common.py_library(cov_level=100) +s.move(templated_files) s.shell.run(["nox", "-s", "blacken"], hide_output=False) diff --git a/packages/google-cloud-webrisk/tests/unit/gapic/v1beta1/test_web_risk_service_v1_beta1_client_v1beta1.py b/packages/google-cloud-webrisk/tests/unit/gapic/v1beta1/test_web_risk_service_v1_beta1_client_v1beta1.py index e458f8821f0b..3e8ec687dae4 100644 --- a/packages/google-cloud-webrisk/tests/unit/gapic/v1beta1/test_web_risk_service_v1_beta1_client_v1beta1.py +++ b/packages/google-cloud-webrisk/tests/unit/gapic/v1beta1/test_web_risk_service_v1_beta1_client_v1beta1.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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.