Skip to content

Commit

Permalink
chore(python): add nox session to sort python imports (#27)
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 32d33d9 commit c4db523
Show file tree
Hide file tree
Showing 18 changed files with 194 additions and 178 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-video-live-stream/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,53 +14,58 @@
# limitations under the License.
#

from google.cloud.video.live_stream_v1.services.livestream_service.async_client import (
LivestreamServiceAsyncClient,
)
from google.cloud.video.live_stream_v1.services.livestream_service.client import (
LivestreamServiceClient,
)
from google.cloud.video.live_stream_v1.services.livestream_service.async_client import (
LivestreamServiceAsyncClient,
from google.cloud.video.live_stream_v1.types.outputs import (
AudioStream,
ElementaryStream,
Manifest,
MuxStream,
PreprocessingConfig,
SegmentSettings,
SpriteSheet,
TextStream,
VideoStream,
)
from google.cloud.video.live_stream_v1.types.resources import (
AudioFormat,
AudioStreamProperty,
Channel,
Event,
Input,
InputAttachment,
InputStreamProperty,
LogConfig,
VideoFormat,
VideoStreamProperty,
)
from google.cloud.video.live_stream_v1.types.service import (
ChannelOperationResponse,
CreateChannelRequest,
CreateEventRequest,
CreateInputRequest,
DeleteChannelRequest,
DeleteEventRequest,
DeleteInputRequest,
GetChannelRequest,
GetEventRequest,
GetInputRequest,
ListChannelsRequest,
ListChannelsResponse,
ListEventsRequest,
ListEventsResponse,
ListInputsRequest,
ListInputsResponse,
OperationMetadata,
StartChannelRequest,
StopChannelRequest,
UpdateChannelRequest,
UpdateInputRequest,
)

from google.cloud.video.live_stream_v1.types.outputs import AudioStream
from google.cloud.video.live_stream_v1.types.outputs import ElementaryStream
from google.cloud.video.live_stream_v1.types.outputs import Manifest
from google.cloud.video.live_stream_v1.types.outputs import MuxStream
from google.cloud.video.live_stream_v1.types.outputs import PreprocessingConfig
from google.cloud.video.live_stream_v1.types.outputs import SegmentSettings
from google.cloud.video.live_stream_v1.types.outputs import SpriteSheet
from google.cloud.video.live_stream_v1.types.outputs import TextStream
from google.cloud.video.live_stream_v1.types.outputs import VideoStream
from google.cloud.video.live_stream_v1.types.resources import AudioFormat
from google.cloud.video.live_stream_v1.types.resources import AudioStreamProperty
from google.cloud.video.live_stream_v1.types.resources import Channel
from google.cloud.video.live_stream_v1.types.resources import Event
from google.cloud.video.live_stream_v1.types.resources import Input
from google.cloud.video.live_stream_v1.types.resources import InputAttachment
from google.cloud.video.live_stream_v1.types.resources import InputStreamProperty
from google.cloud.video.live_stream_v1.types.resources import LogConfig
from google.cloud.video.live_stream_v1.types.resources import VideoFormat
from google.cloud.video.live_stream_v1.types.resources import VideoStreamProperty
from google.cloud.video.live_stream_v1.types.service import ChannelOperationResponse
from google.cloud.video.live_stream_v1.types.service import CreateChannelRequest
from google.cloud.video.live_stream_v1.types.service import CreateEventRequest
from google.cloud.video.live_stream_v1.types.service import CreateInputRequest
from google.cloud.video.live_stream_v1.types.service import DeleteChannelRequest
from google.cloud.video.live_stream_v1.types.service import DeleteEventRequest
from google.cloud.video.live_stream_v1.types.service import DeleteInputRequest
from google.cloud.video.live_stream_v1.types.service import GetChannelRequest
from google.cloud.video.live_stream_v1.types.service import GetEventRequest
from google.cloud.video.live_stream_v1.types.service import GetInputRequest
from google.cloud.video.live_stream_v1.types.service import ListChannelsRequest
from google.cloud.video.live_stream_v1.types.service import ListChannelsResponse
from google.cloud.video.live_stream_v1.types.service import ListEventsRequest
from google.cloud.video.live_stream_v1.types.service import ListEventsResponse
from google.cloud.video.live_stream_v1.types.service import ListInputsRequest
from google.cloud.video.live_stream_v1.types.service import ListInputsResponse
from google.cloud.video.live_stream_v1.types.service import OperationMetadata
from google.cloud.video.live_stream_v1.types.service import StartChannelRequest
from google.cloud.video.live_stream_v1.types.service import StopChannelRequest
from google.cloud.video.live_stream_v1.types.service import UpdateChannelRequest
from google.cloud.video.live_stream_v1.types.service import UpdateInputRequest

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

from .services.livestream_service import LivestreamServiceClient
from .services.livestream_service import LivestreamServiceAsyncClient

from .types.outputs import AudioStream
from .types.outputs import ElementaryStream
from .types.outputs import Manifest
from .types.outputs import MuxStream
from .types.outputs import PreprocessingConfig
from .types.outputs import SegmentSettings
from .types.outputs import SpriteSheet
from .types.outputs import TextStream
from .types.outputs import VideoStream
from .types.resources import AudioFormat
from .types.resources import AudioStreamProperty
from .types.resources import Channel
from .types.resources import Event
from .types.resources import Input
from .types.resources import InputAttachment
from .types.resources import InputStreamProperty
from .types.resources import LogConfig
from .types.resources import VideoFormat
from .types.resources import VideoStreamProperty
from .types.service import ChannelOperationResponse
from .types.service import CreateChannelRequest
from .types.service import CreateEventRequest
from .types.service import CreateInputRequest
from .types.service import DeleteChannelRequest
from .types.service import DeleteEventRequest
from .types.service import DeleteInputRequest
from .types.service import GetChannelRequest
from .types.service import GetEventRequest
from .types.service import GetInputRequest
from .types.service import ListChannelsRequest
from .types.service import ListChannelsResponse
from .types.service import ListEventsRequest
from .types.service import ListEventsResponse
from .types.service import ListInputsRequest
from .types.service import ListInputsResponse
from .types.service import OperationMetadata
from .types.service import StartChannelRequest
from .types.service import StopChannelRequest
from .types.service import UpdateChannelRequest
from .types.service import UpdateInputRequest
from .services.livestream_service import (
LivestreamServiceAsyncClient,
LivestreamServiceClient,
)
from .types.outputs import (
AudioStream,
ElementaryStream,
Manifest,
MuxStream,
PreprocessingConfig,
SegmentSettings,
SpriteSheet,
TextStream,
VideoStream,
)
from .types.resources import (
AudioFormat,
AudioStreamProperty,
Channel,
Event,
Input,
InputAttachment,
InputStreamProperty,
LogConfig,
VideoFormat,
VideoStreamProperty,
)
from .types.service import (
ChannelOperationResponse,
CreateChannelRequest,
CreateEventRequest,
CreateInputRequest,
DeleteChannelRequest,
DeleteEventRequest,
DeleteInputRequest,
GetChannelRequest,
GetEventRequest,
GetInputRequest,
ListChannelsRequest,
ListChannelsResponse,
ListEventsRequest,
ListEventsResponse,
ListInputsRequest,
ListInputsResponse,
OperationMetadata,
StartChannelRequest,
StopChannelRequest,
UpdateChannelRequest,
UpdateInputRequest,
)

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

__all__ = (
"LivestreamServiceClient",
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,17 +33,17 @@

from google.api_core import operation # type: ignore
from google.api_core import operation_async # type: ignore
from google.cloud.video.live_stream_v1.services.livestream_service import pagers
from google.cloud.video.live_stream_v1.types import outputs
from google.cloud.video.live_stream_v1.types import resources
from google.cloud.video.live_stream_v1.types import service
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 google.rpc import status_pb2 # type: ignore
from .transports.base import LivestreamServiceTransport, DEFAULT_CLIENT_INFO
from .transports.grpc_asyncio import LivestreamServiceGrpcAsyncIOTransport

from google.cloud.video.live_stream_v1.services.livestream_service import pagers
from google.cloud.video.live_stream_v1.types import outputs, resources, service

from .client import LivestreamServiceClient
from .transports.base import DEFAULT_CLIENT_INFO, LivestreamServiceTransport
from .transports.grpc_asyncio import LivestreamServiceGrpcAsyncIOTransport


class LivestreamServiceAsyncClient:
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,15 +36,15 @@

from google.api_core import operation # type: ignore
from google.api_core import operation_async # type: ignore
from google.cloud.video.live_stream_v1.services.livestream_service import pagers
from google.cloud.video.live_stream_v1.types import outputs
from google.cloud.video.live_stream_v1.types import resources
from google.cloud.video.live_stream_v1.types import service
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 google.rpc import status_pb2 # type: ignore
from .transports.base import LivestreamServiceTransport, DEFAULT_CLIENT_INFO

from google.cloud.video.live_stream_v1.services.livestream_service import pagers
from google.cloud.video.live_stream_v1.types import outputs, resources, service

from .transports.base import DEFAULT_CLIENT_INFO, LivestreamServiceTransport
from .transports.grpc import LivestreamServiceGrpcTransport
from .transports.grpc_asyncio import LivestreamServiceGrpcAsyncIOTransport

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

from google.cloud.video.live_stream_v1.types import resources
from google.cloud.video.live_stream_v1.types import service
from google.cloud.video.live_stream_v1.types import resources, service


class ListChannelsPager:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from .grpc import LivestreamServiceGrpcTransport
from .grpc_asyncio import LivestreamServiceGrpcAsyncIOTransport


# Compile a registry of transports.
_transport_registry = OrderedDict() # type: Dict[str, Type[LivestreamServiceTransport]]
_transport_registry["grpc"] = LivestreamServiceGrpcTransport
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
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.oauth2 import service_account # type: ignore

from google.cloud.video.live_stream_v1.types import resources
from google.cloud.video.live_stream_v1.types import service
from google.longrunning import operations_pb2 # type: ignore
from google.oauth2 import service_account # type: ignore
from google.protobuf import empty_pb2 # type: ignore
import pkg_resources

from google.cloud.video.live_stream_v1.types import resources, service

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_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

import grpc # type: ignore

from google.cloud.video.live_stream_v1.types import resources
from google.cloud.video.live_stream_v1.types import service
from google.longrunning import operations_pb2 # type: ignore
from google.protobuf import empty_pb2 # type: ignore
from .base import LivestreamServiceTransport, DEFAULT_CLIENT_INFO
import grpc # type: ignore

from google.cloud.video.live_stream_v1.types import resources, service

from .base import DEFAULT_CLIENT_INFO, LivestreamServiceTransport


class LivestreamServiceGrpcTransport(LivestreamServiceTransport):
Expand Down
Loading

0 comments on commit c4db523

Please sign in to comment.