Skip to content

Commit

Permalink
chore(python): add nox session to sort python imports (#144)
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
2 people authored and pull[bot] committed Jul 4, 2023
1 parent b8e3946 commit aeadc8c
Show file tree
Hide file tree
Showing 17 changed files with 132 additions and 113 deletions.
4 changes: 2 additions & 2 deletions packages/google-area120-tables/.github/.OwlBot.lock.yaml
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-area120-tables/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
57 changes: 29 additions & 28 deletions packages/google-area120-tables/google/area120/tables/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,39 +14,40 @@
# limitations under the License.
#

from google.area120.tables_v1alpha1.services.tables_service.async_client import (
TablesServiceAsyncClient,
)
from google.area120.tables_v1alpha1.services.tables_service.client import (
TablesServiceClient,
)
from google.area120.tables_v1alpha1.services.tables_service.async_client import (
TablesServiceAsyncClient,
from google.area120.tables_v1alpha1.types.tables import (
BatchCreateRowsRequest,
BatchCreateRowsResponse,
BatchDeleteRowsRequest,
BatchUpdateRowsRequest,
BatchUpdateRowsResponse,
ColumnDescription,
CreateRowRequest,
DeleteRowRequest,
GetRowRequest,
GetTableRequest,
GetWorkspaceRequest,
LabeledItem,
ListRowsRequest,
ListRowsResponse,
ListTablesRequest,
ListTablesResponse,
ListWorkspacesRequest,
ListWorkspacesResponse,
LookupDetails,
RelationshipDetails,
Row,
Table,
UpdateRowRequest,
View,
Workspace,
)

from google.area120.tables_v1alpha1.types.tables import BatchCreateRowsRequest
from google.area120.tables_v1alpha1.types.tables import BatchCreateRowsResponse
from google.area120.tables_v1alpha1.types.tables import BatchDeleteRowsRequest
from google.area120.tables_v1alpha1.types.tables import BatchUpdateRowsRequest
from google.area120.tables_v1alpha1.types.tables import BatchUpdateRowsResponse
from google.area120.tables_v1alpha1.types.tables import ColumnDescription
from google.area120.tables_v1alpha1.types.tables import CreateRowRequest
from google.area120.tables_v1alpha1.types.tables import DeleteRowRequest
from google.area120.tables_v1alpha1.types.tables import GetRowRequest
from google.area120.tables_v1alpha1.types.tables import GetTableRequest
from google.area120.tables_v1alpha1.types.tables import GetWorkspaceRequest
from google.area120.tables_v1alpha1.types.tables import LabeledItem
from google.area120.tables_v1alpha1.types.tables import ListRowsRequest
from google.area120.tables_v1alpha1.types.tables import ListRowsResponse
from google.area120.tables_v1alpha1.types.tables import ListTablesRequest
from google.area120.tables_v1alpha1.types.tables import ListTablesResponse
from google.area120.tables_v1alpha1.types.tables import ListWorkspacesRequest
from google.area120.tables_v1alpha1.types.tables import ListWorkspacesResponse
from google.area120.tables_v1alpha1.types.tables import LookupDetails
from google.area120.tables_v1alpha1.types.tables import RelationshipDetails
from google.area120.tables_v1alpha1.types.tables import Row
from google.area120.tables_v1alpha1.types.tables import Table
from google.area120.tables_v1alpha1.types.tables import UpdateRowRequest
from google.area120.tables_v1alpha1.types.tables import Workspace
from google.area120.tables_v1alpha1.types.tables import View

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

from .services.tables_service import TablesServiceClient
from .services.tables_service import TablesServiceAsyncClient

from .types.tables import BatchCreateRowsRequest
from .types.tables import BatchCreateRowsResponse
from .types.tables import BatchDeleteRowsRequest
from .types.tables import BatchUpdateRowsRequest
from .types.tables import BatchUpdateRowsResponse
from .types.tables import ColumnDescription
from .types.tables import CreateRowRequest
from .types.tables import DeleteRowRequest
from .types.tables import GetRowRequest
from .types.tables import GetTableRequest
from .types.tables import GetWorkspaceRequest
from .types.tables import LabeledItem
from .types.tables import ListRowsRequest
from .types.tables import ListRowsResponse
from .types.tables import ListTablesRequest
from .types.tables import ListTablesResponse
from .types.tables import ListWorkspacesRequest
from .types.tables import ListWorkspacesResponse
from .types.tables import LookupDetails
from .types.tables import RelationshipDetails
from .types.tables import Row
from .types.tables import Table
from .types.tables import UpdateRowRequest
from .types.tables import Workspace
from .types.tables import View
from .services.tables_service import TablesServiceAsyncClient, TablesServiceClient
from .types.tables import (
BatchCreateRowsRequest,
BatchCreateRowsResponse,
BatchDeleteRowsRequest,
BatchUpdateRowsRequest,
BatchUpdateRowsResponse,
ColumnDescription,
CreateRowRequest,
DeleteRowRequest,
GetRowRequest,
GetTableRequest,
GetWorkspaceRequest,
LabeledItem,
ListRowsRequest,
ListRowsResponse,
ListTablesRequest,
ListTablesResponse,
ListWorkspacesRequest,
ListWorkspacesResponse,
LookupDetails,
RelationshipDetails,
Row,
Table,
UpdateRowRequest,
View,
Workspace,
)

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

__all__ = (
"TablesServiceClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,28 @@
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]
except AttributeError: # pragma: NO COVER
OptionalRetry = Union[retries.Retry, object] # type: ignore

from google.protobuf import field_mask_pb2 # type: ignore

from google.area120.tables_v1alpha1.services.tables_service import pagers
from google.area120.tables_v1alpha1.types import tables
from google.protobuf import field_mask_pb2 # type: ignore
from .transports.base import TablesServiceTransport, DEFAULT_CLIENT_INFO
from .transports.grpc_asyncio import TablesServiceGrpcAsyncIOTransport

from .client import TablesServiceClient
from .transports.base import DEFAULT_CLIENT_INFO, TablesServiceTransport
from .transports.grpc_asyncio import TablesServiceGrpcAsyncIOTransport


class TablesServiceAsyncClient:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,29 @@
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]
except AttributeError: # pragma: NO COVER
OptionalRetry = Union[retries.Retry, object] # type: ignore

from google.protobuf import field_mask_pb2 # type: ignore

from google.area120.tables_v1alpha1.services.tables_service import pagers
from google.area120.tables_v1alpha1.types import tables
from google.protobuf import field_mask_pb2 # type: ignore
from .transports.base import TablesServiceTransport, DEFAULT_CLIENT_INFO

from .transports.base import DEFAULT_CLIENT_INFO, TablesServiceTransport
from .transports.grpc import TablesServiceGrpcTransport
from .transports.grpc_asyncio import TablesServiceGrpcAsyncIOTransport

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.area120.tables_v1alpha1.types import tables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from .grpc import TablesServiceGrpcTransport
from .grpc_asyncio import TablesServiceGrpcAsyncIOTransport


# Compile a registry of transports.
_transport_registry = OrderedDict() # type: Dict[str, Type[TablesServiceTransport]]
_transport_registry["grpc"] = TablesServiceGrpcTransport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +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 retry as retries
import google.auth # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore
from google.protobuf import empty_pb2 # type: ignore
import pkg_resources

from google.area120.tables_v1alpha1.types import tables
from google.protobuf import empty_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,20 +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 gapic_v1
from google.api_core import gapic_v1, grpc_helpers
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.protobuf import empty_pb2 # type: ignore
import grpc # type: ignore

from google.area120.tables_v1alpha1.types import tables
from google.protobuf import empty_pb2 # type: ignore
from .base import TablesServiceTransport, DEFAULT_CLIENT_INFO

from .base import DEFAULT_CLIENT_INFO, TablesServiceTransport


class TablesServiceGrpcTransport(TablesServiceTransport):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +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 gapic_v1, grpc_helpers_async
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore

from google.protobuf import empty_pb2 # type: ignore
import grpc # type: ignore
from grpc.experimental import aio # type: ignore

from google.area120.tables_v1alpha1.types import tables
from google.protobuf import empty_pb2 # type: ignore
from .base import TablesServiceTransport, DEFAULT_CLIENT_INFO

from .base import DEFAULT_CLIENT_INFO, TablesServiceTransport
from .grpc import TablesServiceGrpcTransport


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
Row,
Table,
UpdateRowRequest,
Workspace,
View,
Workspace,
)

__all__ = (
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.protobuf import field_mask_pb2 # type: ignore
from google.protobuf import struct_pb2 # type: ignore

import proto # type: ignore

__protobuf__ = proto.module(
package="google.area120.tables.v1alpha1",
Expand Down
Loading

0 comments on commit aeadc8c

Please sign in to comment.