Skip to content

Commit a291cd7

Browse files
chore(python): add nox session to sort python imports (googleapis#68)
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>
1 parent f39230d commit a291cd7

File tree

23 files changed

+180
-175
lines changed

23 files changed

+180
-175
lines changed

packages/google-cloud-deploy/.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:8a5d3f6a2e43ed8293f34e06a2f56931d1e88a2694c3bb11b15df4eb256ad163
17-
# created: 2022-04-06T10:30:21.687684602Z
16+
digest: sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416
17+
# created: 2022-04-20T23:42:53.970438194Z

packages/google-cloud-deploy/docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
# All configuration values have a default; values that are commented out
2525
# serve to show the default.
2626

27-
import sys
2827
import os
2928
import shlex
29+
import sys
3030

3131
# If extensions (or modules to document with autodoc) are in another directory,
3232
# add these directories to sys.path here. If the directory is relative to the

packages/google-cloud-deploy/google/cloud/deploy/__init__.py

Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -14,53 +14,54 @@
1414
# limitations under the License.
1515
#
1616

17-
from google.cloud.deploy_v1.services.cloud_deploy.client import CloudDeployClient
1817
from google.cloud.deploy_v1.services.cloud_deploy.async_client import (
1918
CloudDeployAsyncClient,
2019
)
21-
22-
from google.cloud.deploy_v1.types.cloud_deploy import AnthosCluster
23-
from google.cloud.deploy_v1.types.cloud_deploy import ApproveRolloutRequest
24-
from google.cloud.deploy_v1.types.cloud_deploy import ApproveRolloutResponse
25-
from google.cloud.deploy_v1.types.cloud_deploy import BuildArtifact
26-
from google.cloud.deploy_v1.types.cloud_deploy import Config
27-
from google.cloud.deploy_v1.types.cloud_deploy import CreateDeliveryPipelineRequest
28-
from google.cloud.deploy_v1.types.cloud_deploy import CreateReleaseRequest
29-
from google.cloud.deploy_v1.types.cloud_deploy import CreateRolloutRequest
30-
from google.cloud.deploy_v1.types.cloud_deploy import CreateTargetRequest
31-
from google.cloud.deploy_v1.types.cloud_deploy import DefaultPool
32-
from google.cloud.deploy_v1.types.cloud_deploy import DeleteDeliveryPipelineRequest
33-
from google.cloud.deploy_v1.types.cloud_deploy import DeleteTargetRequest
34-
from google.cloud.deploy_v1.types.cloud_deploy import DeliveryPipeline
35-
from google.cloud.deploy_v1.types.cloud_deploy import ExecutionConfig
36-
from google.cloud.deploy_v1.types.cloud_deploy import GetConfigRequest
37-
from google.cloud.deploy_v1.types.cloud_deploy import GetDeliveryPipelineRequest
38-
from google.cloud.deploy_v1.types.cloud_deploy import GetReleaseRequest
39-
from google.cloud.deploy_v1.types.cloud_deploy import GetRolloutRequest
40-
from google.cloud.deploy_v1.types.cloud_deploy import GetTargetRequest
41-
from google.cloud.deploy_v1.types.cloud_deploy import GkeCluster
42-
from google.cloud.deploy_v1.types.cloud_deploy import ListDeliveryPipelinesRequest
43-
from google.cloud.deploy_v1.types.cloud_deploy import ListDeliveryPipelinesResponse
44-
from google.cloud.deploy_v1.types.cloud_deploy import ListReleasesRequest
45-
from google.cloud.deploy_v1.types.cloud_deploy import ListReleasesResponse
46-
from google.cloud.deploy_v1.types.cloud_deploy import ListRolloutsRequest
47-
from google.cloud.deploy_v1.types.cloud_deploy import ListRolloutsResponse
48-
from google.cloud.deploy_v1.types.cloud_deploy import ListTargetsRequest
49-
from google.cloud.deploy_v1.types.cloud_deploy import ListTargetsResponse
50-
from google.cloud.deploy_v1.types.cloud_deploy import OperationMetadata
51-
from google.cloud.deploy_v1.types.cloud_deploy import PipelineCondition
52-
from google.cloud.deploy_v1.types.cloud_deploy import PipelineReadyCondition
53-
from google.cloud.deploy_v1.types.cloud_deploy import PrivatePool
54-
from google.cloud.deploy_v1.types.cloud_deploy import Release
55-
from google.cloud.deploy_v1.types.cloud_deploy import Rollout
56-
from google.cloud.deploy_v1.types.cloud_deploy import SerialPipeline
57-
from google.cloud.deploy_v1.types.cloud_deploy import SkaffoldVersion
58-
from google.cloud.deploy_v1.types.cloud_deploy import Stage
59-
from google.cloud.deploy_v1.types.cloud_deploy import Target
60-
from google.cloud.deploy_v1.types.cloud_deploy import TargetArtifact
61-
from google.cloud.deploy_v1.types.cloud_deploy import TargetsPresentCondition
62-
from google.cloud.deploy_v1.types.cloud_deploy import UpdateDeliveryPipelineRequest
63-
from google.cloud.deploy_v1.types.cloud_deploy import UpdateTargetRequest
20+
from google.cloud.deploy_v1.services.cloud_deploy.client import CloudDeployClient
21+
from google.cloud.deploy_v1.types.cloud_deploy import (
22+
AnthosCluster,
23+
ApproveRolloutRequest,
24+
ApproveRolloutResponse,
25+
BuildArtifact,
26+
Config,
27+
CreateDeliveryPipelineRequest,
28+
CreateReleaseRequest,
29+
CreateRolloutRequest,
30+
CreateTargetRequest,
31+
DefaultPool,
32+
DeleteDeliveryPipelineRequest,
33+
DeleteTargetRequest,
34+
DeliveryPipeline,
35+
ExecutionConfig,
36+
GetConfigRequest,
37+
GetDeliveryPipelineRequest,
38+
GetReleaseRequest,
39+
GetRolloutRequest,
40+
GetTargetRequest,
41+
GkeCluster,
42+
ListDeliveryPipelinesRequest,
43+
ListDeliveryPipelinesResponse,
44+
ListReleasesRequest,
45+
ListReleasesResponse,
46+
ListRolloutsRequest,
47+
ListRolloutsResponse,
48+
ListTargetsRequest,
49+
ListTargetsResponse,
50+
OperationMetadata,
51+
PipelineCondition,
52+
PipelineReadyCondition,
53+
PrivatePool,
54+
Release,
55+
Rollout,
56+
SerialPipeline,
57+
SkaffoldVersion,
58+
Stage,
59+
Target,
60+
TargetArtifact,
61+
TargetsPresentCondition,
62+
UpdateDeliveryPipelineRequest,
63+
UpdateTargetRequest,
64+
)
6465
from google.cloud.deploy_v1.types.deliverypipeline_notification_payload import (
6566
DeliveryPipelineNotificationEvent,
6667
)

packages/google-cloud-deploy/google/cloud/deploy_v1/__init__.py

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -14,51 +14,51 @@
1414
# limitations under the License.
1515
#
1616

17-
from .services.cloud_deploy import CloudDeployClient
18-
from .services.cloud_deploy import CloudDeployAsyncClient
19-
20-
from .types.cloud_deploy import AnthosCluster
21-
from .types.cloud_deploy import ApproveRolloutRequest
22-
from .types.cloud_deploy import ApproveRolloutResponse
23-
from .types.cloud_deploy import BuildArtifact
24-
from .types.cloud_deploy import Config
25-
from .types.cloud_deploy import CreateDeliveryPipelineRequest
26-
from .types.cloud_deploy import CreateReleaseRequest
27-
from .types.cloud_deploy import CreateRolloutRequest
28-
from .types.cloud_deploy import CreateTargetRequest
29-
from .types.cloud_deploy import DefaultPool
30-
from .types.cloud_deploy import DeleteDeliveryPipelineRequest
31-
from .types.cloud_deploy import DeleteTargetRequest
32-
from .types.cloud_deploy import DeliveryPipeline
33-
from .types.cloud_deploy import ExecutionConfig
34-
from .types.cloud_deploy import GetConfigRequest
35-
from .types.cloud_deploy import GetDeliveryPipelineRequest
36-
from .types.cloud_deploy import GetReleaseRequest
37-
from .types.cloud_deploy import GetRolloutRequest
38-
from .types.cloud_deploy import GetTargetRequest
39-
from .types.cloud_deploy import GkeCluster
40-
from .types.cloud_deploy import ListDeliveryPipelinesRequest
41-
from .types.cloud_deploy import ListDeliveryPipelinesResponse
42-
from .types.cloud_deploy import ListReleasesRequest
43-
from .types.cloud_deploy import ListReleasesResponse
44-
from .types.cloud_deploy import ListRolloutsRequest
45-
from .types.cloud_deploy import ListRolloutsResponse
46-
from .types.cloud_deploy import ListTargetsRequest
47-
from .types.cloud_deploy import ListTargetsResponse
48-
from .types.cloud_deploy import OperationMetadata
49-
from .types.cloud_deploy import PipelineCondition
50-
from .types.cloud_deploy import PipelineReadyCondition
51-
from .types.cloud_deploy import PrivatePool
52-
from .types.cloud_deploy import Release
53-
from .types.cloud_deploy import Rollout
54-
from .types.cloud_deploy import SerialPipeline
55-
from .types.cloud_deploy import SkaffoldVersion
56-
from .types.cloud_deploy import Stage
57-
from .types.cloud_deploy import Target
58-
from .types.cloud_deploy import TargetArtifact
59-
from .types.cloud_deploy import TargetsPresentCondition
60-
from .types.cloud_deploy import UpdateDeliveryPipelineRequest
61-
from .types.cloud_deploy import UpdateTargetRequest
17+
from .services.cloud_deploy import CloudDeployAsyncClient, CloudDeployClient
18+
from .types.cloud_deploy import (
19+
AnthosCluster,
20+
ApproveRolloutRequest,
21+
ApproveRolloutResponse,
22+
BuildArtifact,
23+
Config,
24+
CreateDeliveryPipelineRequest,
25+
CreateReleaseRequest,
26+
CreateRolloutRequest,
27+
CreateTargetRequest,
28+
DefaultPool,
29+
DeleteDeliveryPipelineRequest,
30+
DeleteTargetRequest,
31+
DeliveryPipeline,
32+
ExecutionConfig,
33+
GetConfigRequest,
34+
GetDeliveryPipelineRequest,
35+
GetReleaseRequest,
36+
GetRolloutRequest,
37+
GetTargetRequest,
38+
GkeCluster,
39+
ListDeliveryPipelinesRequest,
40+
ListDeliveryPipelinesResponse,
41+
ListReleasesRequest,
42+
ListReleasesResponse,
43+
ListRolloutsRequest,
44+
ListRolloutsResponse,
45+
ListTargetsRequest,
46+
ListTargetsResponse,
47+
OperationMetadata,
48+
PipelineCondition,
49+
PipelineReadyCondition,
50+
PrivatePool,
51+
Release,
52+
Rollout,
53+
SerialPipeline,
54+
SkaffoldVersion,
55+
Stage,
56+
Target,
57+
TargetArtifact,
58+
TargetsPresentCondition,
59+
UpdateDeliveryPipelineRequest,
60+
UpdateTargetRequest,
61+
)
6262
from .types.deliverypipeline_notification_payload import (
6363
DeliveryPipelineNotificationEvent,
6464
)

packages/google-cloud-deploy/google/cloud/deploy_v1/services/cloud_deploy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
from .client import CloudDeployClient
1716
from .async_client import CloudDeployAsyncClient
17+
from .client import CloudDeployClient
1818

1919
__all__ = (
2020
"CloudDeployClient",

packages/google-cloud-deploy/google/cloud/deploy_v1/services/cloud_deploy/async_client.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
import functools
1818
import re
1919
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
20-
import pkg_resources
2120

22-
from google.api_core.client_options import ClientOptions
2321
from google.api_core import exceptions as core_exceptions
2422
from google.api_core import gapic_v1
2523
from google.api_core import retry as retries
24+
from google.api_core.client_options import ClientOptions
2625
from google.auth import credentials as ga_credentials # type: ignore
2726
from google.oauth2 import service_account # type: ignore
27+
import pkg_resources
2828

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

3434
from google.api_core import operation # type: ignore
3535
from google.api_core import operation_async # type: ignore
36-
from google.cloud.deploy_v1.services.cloud_deploy import pagers
37-
from google.cloud.deploy_v1.types import cloud_deploy
3836
from google.protobuf import empty_pb2 # type: ignore
3937
from google.protobuf import field_mask_pb2 # type: ignore
4038
from google.protobuf import timestamp_pb2 # type: ignore
41-
from .transports.base import CloudDeployTransport, DEFAULT_CLIENT_INFO
42-
from .transports.grpc_asyncio import CloudDeployGrpcAsyncIOTransport
39+
40+
from google.cloud.deploy_v1.services.cloud_deploy import pagers
41+
from google.cloud.deploy_v1.types import cloud_deploy
42+
4343
from .client import CloudDeployClient
44+
from .transports.base import DEFAULT_CLIENT_INFO, CloudDeployTransport
45+
from .transports.grpc_asyncio import CloudDeployGrpcAsyncIOTransport
4446

4547

4648
class CloudDeployAsyncClient:

packages/google-cloud-deploy/google/cloud/deploy_v1/services/cloud_deploy/client.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717
import os
1818
import re
1919
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
20-
import pkg_resources
2120

2221
from google.api_core import client_options as client_options_lib
2322
from google.api_core import exceptions as core_exceptions
2423
from google.api_core import gapic_v1
2524
from google.api_core import retry as retries
2625
from google.auth import credentials as ga_credentials # type: ignore
26+
from google.auth.exceptions import MutualTLSChannelError # type: ignore
2727
from google.auth.transport import mtls # type: ignore
2828
from google.auth.transport.grpc import SslCredentials # type: ignore
29-
from google.auth.exceptions import MutualTLSChannelError # type: ignore
3029
from google.oauth2 import service_account # type: ignore
30+
import pkg_resources
3131

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

3737
from google.api_core import operation # type: ignore
3838
from google.api_core import operation_async # type: ignore
39-
from google.cloud.deploy_v1.services.cloud_deploy import pagers
40-
from google.cloud.deploy_v1.types import cloud_deploy
4139
from google.protobuf import empty_pb2 # type: ignore
4240
from google.protobuf import field_mask_pb2 # type: ignore
4341
from google.protobuf import timestamp_pb2 # type: ignore
44-
from .transports.base import CloudDeployTransport, DEFAULT_CLIENT_INFO
42+
43+
from google.cloud.deploy_v1.services.cloud_deploy import pagers
44+
from google.cloud.deploy_v1.types import cloud_deploy
45+
46+
from .transports.base import DEFAULT_CLIENT_INFO, CloudDeployTransport
4547
from .transports.grpc import CloudDeployGrpcTransport
4648
from .transports.grpc_asyncio import CloudDeployGrpcAsyncIOTransport
4749

packages/google-cloud-deploy/google/cloud/deploy_v1/services/cloud_deploy/pagers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
AsyncIterator,
1919
Awaitable,
2020
Callable,
21+
Iterator,
22+
Optional,
2123
Sequence,
2224
Tuple,
23-
Optional,
24-
Iterator,
2525
)
2626

2727
from google.cloud.deploy_v1.types import cloud_deploy

packages/google-cloud-deploy/google/cloud/deploy_v1/services/cloud_deploy/transports/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from .grpc import CloudDeployGrpcTransport
2121
from .grpc_asyncio import CloudDeployGrpcAsyncIOTransport
2222

23-
2423
# Compile a registry of transports.
2524
_transport_registry = OrderedDict() # type: Dict[str, Type[CloudDeployTransport]]
2625
_transport_registry["grpc"] = CloudDeployGrpcTransport

packages/google-cloud-deploy/google/cloud/deploy_v1/services/cloud_deploy/transports/base.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,18 @@
1515
#
1616
import abc
1717
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
18-
import pkg_resources
1918

20-
import google.auth # type: ignore
2119
import google.api_core
2220
from google.api_core import exceptions as core_exceptions
23-
from google.api_core import gapic_v1
21+
from google.api_core import gapic_v1, operations_v1
2422
from google.api_core import retry as retries
25-
from google.api_core import operations_v1
23+
import google.auth # type: ignore
2624
from google.auth import credentials as ga_credentials # type: ignore
25+
from google.longrunning import operations_pb2 # type: ignore
2726
from google.oauth2 import service_account # type: ignore
27+
import pkg_resources
2828

2929
from google.cloud.deploy_v1.types import cloud_deploy
30-
from google.longrunning import operations_pb2 # type: ignore
3130

3231
try:
3332
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(

0 commit comments

Comments
 (0)