Skip to content

Commit

Permalink
chore(python): add nox session to sort python imports (#28)
Browse files Browse the repository at this point in the history
Source-Link: googleapis/synthtool@1b71c10
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 21, 2022
1 parent d4129dd commit 7be90ce
Show file tree
Hide file tree
Showing 17 changed files with 127 additions and 161 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
digest: sha256:8a5d3f6a2e43ed8293f34e06a2f56931d1e88a2694c3bb11b15df4eb256ad163
# created: 2022-04-06T10:30:21.687684602Z
digest: sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416
# created: 2022-04-20T23:42:53.970438194Z
2 changes: 1 addition & 1 deletion packages/google-cloud-certificate-manager/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os
import shlex
import sys

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,97 +14,44 @@
# limitations under the License.
#

from google.cloud.certificate_manager_v1.services.certificate_manager.client import (
CertificateManagerClient,
)
from google.cloud.certificate_manager_v1.services.certificate_manager.async_client import (
CertificateManagerAsyncClient,
)

from google.cloud.certificate_manager_v1.types.certificate_manager import Certificate
from google.cloud.certificate_manager_v1.types.certificate_manager import CertificateMap
from google.cloud.certificate_manager_v1.types.certificate_manager import (
CertificateMapEntry,
from google.cloud.certificate_manager_v1.services.certificate_manager.client import (
CertificateManagerClient,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
Certificate,
CertificateMap,
CertificateMapEntry,
CreateCertificateMapEntryRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
CreateCertificateMapRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
CreateCertificateRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
CreateDnsAuthorizationRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
DeleteCertificateMapEntryRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
DeleteCertificateMapRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
DeleteCertificateRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
DeleteDnsAuthorizationRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
DnsAuthorization,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
GetCertificateMapEntryRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
GetCertificateMapRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
GetCertificateRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
GetDnsAuthorizationRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
ListCertificateMapEntriesRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
ListCertificateMapEntriesResponse,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
ListCertificateMapsRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
ListCertificateMapsResponse,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
ListCertificatesRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
ListCertificatesResponse,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
ListDnsAuthorizationsRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
ListDnsAuthorizationsResponse,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
OperationMetadata,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
ServingState,
UpdateCertificateMapEntryRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
UpdateCertificateMapRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
UpdateCertificateRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import (
UpdateDnsAuthorizationRequest,
)
from google.cloud.certificate_manager_v1.types.certificate_manager import ServingState

__all__ = (
"CertificateManagerClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,39 +14,42 @@
# limitations under the License.
#

from .services.certificate_manager import CertificateManagerClient
from .services.certificate_manager import CertificateManagerAsyncClient

from .types.certificate_manager import Certificate
from .types.certificate_manager import CertificateMap
from .types.certificate_manager import CertificateMapEntry
from .types.certificate_manager import CreateCertificateMapEntryRequest
from .types.certificate_manager import CreateCertificateMapRequest
from .types.certificate_manager import CreateCertificateRequest
from .types.certificate_manager import CreateDnsAuthorizationRequest
from .types.certificate_manager import DeleteCertificateMapEntryRequest
from .types.certificate_manager import DeleteCertificateMapRequest
from .types.certificate_manager import DeleteCertificateRequest
from .types.certificate_manager import DeleteDnsAuthorizationRequest
from .types.certificate_manager import DnsAuthorization
from .types.certificate_manager import GetCertificateMapEntryRequest
from .types.certificate_manager import GetCertificateMapRequest
from .types.certificate_manager import GetCertificateRequest
from .types.certificate_manager import GetDnsAuthorizationRequest
from .types.certificate_manager import ListCertificateMapEntriesRequest
from .types.certificate_manager import ListCertificateMapEntriesResponse
from .types.certificate_manager import ListCertificateMapsRequest
from .types.certificate_manager import ListCertificateMapsResponse
from .types.certificate_manager import ListCertificatesRequest
from .types.certificate_manager import ListCertificatesResponse
from .types.certificate_manager import ListDnsAuthorizationsRequest
from .types.certificate_manager import ListDnsAuthorizationsResponse
from .types.certificate_manager import OperationMetadata
from .types.certificate_manager import UpdateCertificateMapEntryRequest
from .types.certificate_manager import UpdateCertificateMapRequest
from .types.certificate_manager import UpdateCertificateRequest
from .types.certificate_manager import UpdateDnsAuthorizationRequest
from .types.certificate_manager import ServingState
from .services.certificate_manager import (
CertificateManagerAsyncClient,
CertificateManagerClient,
)
from .types.certificate_manager import (
Certificate,
CertificateMap,
CertificateMapEntry,
CreateCertificateMapEntryRequest,
CreateCertificateMapRequest,
CreateCertificateRequest,
CreateDnsAuthorizationRequest,
DeleteCertificateMapEntryRequest,
DeleteCertificateMapRequest,
DeleteCertificateRequest,
DeleteDnsAuthorizationRequest,
DnsAuthorization,
GetCertificateMapEntryRequest,
GetCertificateMapRequest,
GetCertificateRequest,
GetDnsAuthorizationRequest,
ListCertificateMapEntriesRequest,
ListCertificateMapEntriesResponse,
ListCertificateMapsRequest,
ListCertificateMapsResponse,
ListCertificatesRequest,
ListCertificatesResponse,
ListDnsAuthorizationsRequest,
ListDnsAuthorizationsResponse,
OperationMetadata,
ServingState,
UpdateCertificateMapEntryRequest,
UpdateCertificateMapRequest,
UpdateCertificateRequest,
UpdateDnsAuthorizationRequest,
)

__all__ = (
"CertificateManagerAsyncClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .client import CertificateManagerClient
from .async_client import CertificateManagerAsyncClient
from .client import CertificateManagerClient

__all__ = (
"CertificateManagerClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
import functools
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.api_core.client_options import ClientOptions
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore
import pkg_resources

try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
Expand All @@ -33,14 +33,16 @@

from google.api_core import operation # type: ignore
from google.api_core import operation_async # type: ignore
from google.cloud.certificate_manager_v1.services.certificate_manager import pagers
from google.cloud.certificate_manager_v1.types import certificate_manager
from google.protobuf import empty_pb2 # type: ignore
from google.protobuf import field_mask_pb2 # type: ignore
from google.protobuf import timestamp_pb2 # type: ignore
from .transports.base import CertificateManagerTransport, DEFAULT_CLIENT_INFO
from .transports.grpc_asyncio import CertificateManagerGrpcAsyncIOTransport

from google.cloud.certificate_manager_v1.services.certificate_manager import pagers
from google.cloud.certificate_manager_v1.types import certificate_manager

from .client import CertificateManagerClient
from .transports.base import DEFAULT_CLIENT_INFO, CertificateManagerTransport
from .transports.grpc_asyncio import CertificateManagerGrpcAsyncIOTransport


class CertificateManagerAsyncClient:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
import os
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.exceptions import MutualTLSChannelError # type: ignore
from google.auth.transport import mtls # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore
from google.auth.exceptions import MutualTLSChannelError # type: ignore
from google.oauth2 import service_account # type: ignore
import pkg_resources

try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
Expand All @@ -36,12 +36,14 @@

from google.api_core import operation # type: ignore
from google.api_core import operation_async # type: ignore
from google.cloud.certificate_manager_v1.services.certificate_manager import pagers
from google.cloud.certificate_manager_v1.types import certificate_manager
from google.protobuf import empty_pb2 # type: ignore
from google.protobuf import field_mask_pb2 # type: ignore
from google.protobuf import timestamp_pb2 # type: ignore
from .transports.base import CertificateManagerTransport, DEFAULT_CLIENT_INFO

from google.cloud.certificate_manager_v1.services.certificate_manager import pagers
from google.cloud.certificate_manager_v1.types import certificate_manager

from .transports.base import DEFAULT_CLIENT_INFO, CertificateManagerTransport
from .transports.grpc import CertificateManagerGrpcTransport
from .transports.grpc_asyncio import CertificateManagerGrpcAsyncIOTransport

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
AsyncIterator,
Awaitable,
Callable,
Iterator,
Optional,
Sequence,
Tuple,
Optional,
Iterator,
)

from google.cloud.certificate_manager_v1.types import certificate_manager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from .grpc import CertificateManagerGrpcTransport
from .grpc_asyncio import CertificateManagerGrpcAsyncIOTransport


# Compile a registry of transports.
_transport_registry = (
OrderedDict()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,18 @@
#
import abc
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
import pkg_resources

import google.auth # type: ignore
import google.api_core
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import gapic_v1, operations_v1
from google.api_core import retry as retries
from google.api_core import operations_v1
import google.auth # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.longrunning import operations_pb2 # type: ignore
from google.oauth2 import service_account # type: ignore
import pkg_resources

from google.cloud.certificate_manager_v1.types import certificate_manager
from google.longrunning import operations_pb2 # type: ignore

try:
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import warnings
from typing import Callable, Dict, Optional, Sequence, Tuple, Union
import warnings

from google.api_core import grpc_helpers
from google.api_core import operations_v1
from google.api_core import gapic_v1
from google.api_core import gapic_v1, grpc_helpers, operations_v1
import google.auth # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore

from google.longrunning import operations_pb2 # type: ignore
import grpc # type: ignore

from google.cloud.certificate_manager_v1.types import certificate_manager
from google.longrunning import operations_pb2 # type: ignore
from .base import CertificateManagerTransport, DEFAULT_CLIENT_INFO

from .base import DEFAULT_CLIENT_INFO, CertificateManagerTransport


class CertificateManagerGrpcTransport(CertificateManagerTransport):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import warnings
from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union
import warnings

from google.api_core import gapic_v1
from google.api_core import grpc_helpers_async
from google.api_core import operations_v1
from google.api_core import gapic_v1, grpc_helpers_async, operations_v1
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore

from google.longrunning import operations_pb2 # type: ignore
import grpc # type: ignore
from grpc.experimental import aio # type: ignore

from google.cloud.certificate_manager_v1.types import certificate_manager
from google.longrunning import operations_pb2 # type: ignore
from .base import CertificateManagerTransport, DEFAULT_CLIENT_INFO

from .base import DEFAULT_CLIENT_INFO, CertificateManagerTransport
from .grpc import CertificateManagerGrpcTransport


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
ListDnsAuthorizationsRequest,
ListDnsAuthorizationsResponse,
OperationMetadata,
ServingState,
UpdateCertificateMapEntryRequest,
UpdateCertificateMapRequest,
UpdateCertificateRequest,
UpdateDnsAuthorizationRequest,
ServingState,
)

__all__ = (
Expand Down
Loading

0 comments on commit 7be90ce

Please sign in to comment.