Skip to content

Commit

Permalink
chore(python): add nox session to sort python imports (#123)
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 7d53535 commit e029f20
Show file tree
Hide file tree
Showing 17 changed files with 145 additions and 157 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-service-management/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,66 +14,41 @@
# limitations under the License.
#

from google.cloud.servicemanagement_v1.services.service_manager.async_client import (
ServiceManagerAsyncClient,
)
from google.cloud.servicemanagement_v1.services.service_manager.client import (
ServiceManagerClient,
)
from google.cloud.servicemanagement_v1.services.service_manager.async_client import (
ServiceManagerAsyncClient,
from google.cloud.servicemanagement_v1.types.resources import (
ChangeReport,
ConfigFile,
ConfigRef,
ConfigSource,
Diagnostic,
ManagedService,
OperationMetadata,
Rollout,
)

from google.cloud.servicemanagement_v1.types.resources import ChangeReport
from google.cloud.servicemanagement_v1.types.resources import ConfigFile
from google.cloud.servicemanagement_v1.types.resources import ConfigRef
from google.cloud.servicemanagement_v1.types.resources import ConfigSource
from google.cloud.servicemanagement_v1.types.resources import Diagnostic
from google.cloud.servicemanagement_v1.types.resources import ManagedService
from google.cloud.servicemanagement_v1.types.resources import OperationMetadata
from google.cloud.servicemanagement_v1.types.resources import Rollout
from google.cloud.servicemanagement_v1.types.servicemanager import (
CreateServiceConfigRequest,
)
from google.cloud.servicemanagement_v1.types.servicemanager import CreateServiceRequest
from google.cloud.servicemanagement_v1.types.servicemanager import (
CreateServiceRequest,
CreateServiceRolloutRequest,
)
from google.cloud.servicemanagement_v1.types.servicemanager import DeleteServiceRequest
from google.cloud.servicemanagement_v1.types.servicemanager import (
DeleteServiceRequest,
GenerateConfigReportRequest,
)
from google.cloud.servicemanagement_v1.types.servicemanager import (
GenerateConfigReportResponse,
)
from google.cloud.servicemanagement_v1.types.servicemanager import (
GetServiceConfigRequest,
)
from google.cloud.servicemanagement_v1.types.servicemanager import GetServiceRequest
from google.cloud.servicemanagement_v1.types.servicemanager import (
GetServiceRequest,
GetServiceRolloutRequest,
)
from google.cloud.servicemanagement_v1.types.servicemanager import (
ListServiceConfigsRequest,
)
from google.cloud.servicemanagement_v1.types.servicemanager import (
ListServiceConfigsResponse,
)
from google.cloud.servicemanagement_v1.types.servicemanager import (
ListServiceRolloutsRequest,
)
from google.cloud.servicemanagement_v1.types.servicemanager import (
ListServiceRolloutsResponse,
)
from google.cloud.servicemanagement_v1.types.servicemanager import ListServicesRequest
from google.cloud.servicemanagement_v1.types.servicemanager import ListServicesResponse
from google.cloud.servicemanagement_v1.types.servicemanager import (
ListServicesRequest,
ListServicesResponse,
SubmitConfigSourceRequest,
)
from google.cloud.servicemanagement_v1.types.servicemanager import (
SubmitConfigSourceResponse,
)
from google.cloud.servicemanagement_v1.types.servicemanager import (
UndeleteServiceRequest,
)
from google.cloud.servicemanagement_v1.types.servicemanager import (
UndeleteServiceResponse,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,38 @@
# limitations under the License.
#

from .services.service_manager import ServiceManagerClient
from .services.service_manager import ServiceManagerAsyncClient

from .types.resources import ChangeReport
from .types.resources import ConfigFile
from .types.resources import ConfigRef
from .types.resources import ConfigSource
from .types.resources import Diagnostic
from .types.resources import ManagedService
from .types.resources import OperationMetadata
from .types.resources import Rollout
from .types.servicemanager import CreateServiceConfigRequest
from .types.servicemanager import CreateServiceRequest
from .types.servicemanager import CreateServiceRolloutRequest
from .types.servicemanager import DeleteServiceRequest
from .types.servicemanager import GenerateConfigReportRequest
from .types.servicemanager import GenerateConfigReportResponse
from .types.servicemanager import GetServiceConfigRequest
from .types.servicemanager import GetServiceRequest
from .types.servicemanager import GetServiceRolloutRequest
from .types.servicemanager import ListServiceConfigsRequest
from .types.servicemanager import ListServiceConfigsResponse
from .types.servicemanager import ListServiceRolloutsRequest
from .types.servicemanager import ListServiceRolloutsResponse
from .types.servicemanager import ListServicesRequest
from .types.servicemanager import ListServicesResponse
from .types.servicemanager import SubmitConfigSourceRequest
from .types.servicemanager import SubmitConfigSourceResponse
from .types.servicemanager import UndeleteServiceRequest
from .types.servicemanager import UndeleteServiceResponse
from .services.service_manager import ServiceManagerAsyncClient, ServiceManagerClient
from .types.resources import (
ChangeReport,
ConfigFile,
ConfigRef,
ConfigSource,
Diagnostic,
ManagedService,
OperationMetadata,
Rollout,
)
from .types.servicemanager import (
CreateServiceConfigRequest,
CreateServiceRequest,
CreateServiceRolloutRequest,
DeleteServiceRequest,
GenerateConfigReportRequest,
GenerateConfigReportResponse,
GetServiceConfigRequest,
GetServiceRequest,
GetServiceRolloutRequest,
ListServiceConfigsRequest,
ListServiceConfigsResponse,
ListServiceRolloutsRequest,
ListServiceRolloutsResponse,
ListServicesRequest,
ListServicesResponse,
SubmitConfigSourceRequest,
SubmitConfigSourceResponse,
UndeleteServiceRequest,
UndeleteServiceResponse,
)

__all__ = (
"ServiceManagerAsyncClient",
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 ServiceManagerClient
from .async_client import ServiceManagerAsyncClient
from .client import ServiceManagerClient

__all__ = (
"ServiceManagerClient",
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 @@ -51,18 +51,19 @@
from google.api import usage_pb2 # type: ignore
from google.api_core import operation # type: ignore
from google.api_core import operation_async # type: ignore
from google.cloud.servicemanagement_v1.services.service_manager import pagers
from google.cloud.servicemanagement_v1.types import resources
from google.cloud.servicemanagement_v1.types import servicemanager
from google.protobuf import any_pb2 # type: ignore
from google.protobuf import api_pb2 # type: ignore
from google.protobuf import empty_pb2 # type: ignore
from google.protobuf import timestamp_pb2 # type: ignore
from google.protobuf import type_pb2 # type: ignore
from google.protobuf import wrappers_pb2 # type: ignore
from .transports.base import ServiceManagerTransport, DEFAULT_CLIENT_INFO
from .transports.grpc_asyncio import ServiceManagerGrpcAsyncIOTransport

from google.cloud.servicemanagement_v1.services.service_manager import pagers
from google.cloud.servicemanagement_v1.types import resources, servicemanager

from .client import ServiceManagerClient
from .transports.base import DEFAULT_CLIENT_INFO, ServiceManagerTransport
from .transports.grpc_asyncio import ServiceManagerGrpcAsyncIOTransport


class ServiceManagerAsyncClient:
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 @@ -54,16 +54,17 @@
from google.api import usage_pb2 # type: ignore
from google.api_core import operation # type: ignore
from google.api_core import operation_async # type: ignore
from google.cloud.servicemanagement_v1.services.service_manager import pagers
from google.cloud.servicemanagement_v1.types import resources
from google.cloud.servicemanagement_v1.types import servicemanager
from google.protobuf import any_pb2 # type: ignore
from google.protobuf import api_pb2 # type: ignore
from google.protobuf import empty_pb2 # type: ignore
from google.protobuf import timestamp_pb2 # type: ignore
from google.protobuf import type_pb2 # type: ignore
from google.protobuf import wrappers_pb2 # type: ignore
from .transports.base import ServiceManagerTransport, DEFAULT_CLIENT_INFO

from google.cloud.servicemanagement_v1.services.service_manager import pagers
from google.cloud.servicemanagement_v1.types import resources, servicemanager

from .transports.base import DEFAULT_CLIENT_INFO, ServiceManagerTransport
from .transports.grpc import ServiceManagerGrpcTransport
from .transports.grpc_asyncio import ServiceManagerGrpcAsyncIOTransport

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

from google.api import service_pb2 # type: ignore
from google.cloud.servicemanagement_v1.types import resources
from google.cloud.servicemanagement_v1.types import servicemanager

from google.cloud.servicemanagement_v1.types import resources, servicemanager


class ListServicesPager:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from .grpc import ServiceManagerGrpcTransport
from .grpc_asyncio import ServiceManagerGrpcAsyncIOTransport


# Compile a registry of transports.
_transport_registry = OrderedDict() # type: Dict[str, Type[ServiceManagerTransport]]
_transport_registry["grpc"] = ServiceManagerGrpcTransport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,19 @@
#
import abc
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
import pkg_resources

import google.auth # type: ignore
from google.api import service_pb2 # 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.api import service_pb2 # type: ignore
from google.cloud.servicemanagement_v1.types import resources
from google.cloud.servicemanagement_v1.types import servicemanager
from google.longrunning import operations_pb2 # type: ignore
from google.cloud.servicemanagement_v1.types import resources, servicemanager

try:
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,20 @@
# 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 import service_pb2 # type: ignore
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.api import service_pb2 # type: ignore
from google.cloud.servicemanagement_v1.types import resources
from google.cloud.servicemanagement_v1.types import servicemanager
from google.longrunning import operations_pb2 # type: ignore
from .base import ServiceManagerTransport, DEFAULT_CLIENT_INFO
from google.cloud.servicemanagement_v1.types import resources, servicemanager

from .base import DEFAULT_CLIENT_INFO, ServiceManagerTransport


class ServiceManagerGrpcTransport(ServiceManagerTransport):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,20 @@
# 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 import service_pb2 # type: ignore
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.api import service_pb2 # type: ignore
from google.cloud.servicemanagement_v1.types import resources
from google.cloud.servicemanagement_v1.types import servicemanager
from google.longrunning import operations_pb2 # type: ignore
from .base import ServiceManagerTransport, DEFAULT_CLIENT_INFO
from google.cloud.servicemanagement_v1.types import resources, servicemanager

from .base import DEFAULT_CLIENT_INFO, ServiceManagerTransport
from .grpc import ServiceManagerGrpcTransport


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import proto # type: ignore

from google.api import config_change_pb2 # type: ignore
from google.protobuf import timestamp_pb2 # type: ignore

import proto # type: ignore

__protobuf__ = proto.module(
package="google.api.servicemanagement.v1",
Expand Down
Loading

0 comments on commit e029f20

Please sign in to comment.