pre-commit: add isort hook and apply (#354)

This commit is contained in:
Arun Babu Neelicattu
2022-03-17 01:01:17 +01:00
committed by GitHub
parent 18a518efa7
commit 70310c9e8c
37 changed files with 216 additions and 58 deletions

View File

@@ -1,6 +1,6 @@
from tests.output_betterproto.enum import (
Test,
Choice,
Test,
)

View File

@@ -1,7 +1,11 @@
from typing import AsyncIterable, AsyncIterator
from typing import (
AsyncIterable,
AsyncIterator,
)
import pytest
from grpclib.testing import ChannelFor
from tests.output_betterproto.example_service import (
ExampleRequest,
ExampleResponse,

View File

@@ -1,14 +1,14 @@
import pytest
from google.protobuf import json_format
import betterproto
from tests.output_betterproto.google_impl_behavior_equivalence import (
Test,
Foo,
Test,
)
from tests.output_reference.google_impl_behavior_equivalence.google_impl_behavior_equivalence_pb2 import (
Test as ReferenceTest,
Foo as ReferenceFoo,
Test as ReferenceTest,
)

View File

@@ -1,9 +1,18 @@
from typing import Any, Callable, Optional
from typing import (
Any,
Callable,
Optional,
)
import pytest
import betterproto.lib.google.protobuf as protobuf
import pytest
from tests.mocks import MockChannel
from tests.output_betterproto.googletypes_response import Input, TestStub
from tests.output_betterproto.googletypes_response import (
Input,
TestStub,
)
test_cases = [
(TestStub.get_double, protobuf.DoubleValue, 2.5),

View File

@@ -1,4 +1,5 @@
import pytest
from tests.mocks import MockChannel
from tests.output_betterproto.googletypes_response_embedded import (
Input,

View File

@@ -1,4 +1,5 @@
import pytest
from tests.mocks import MockChannel
from tests.output_betterproto.import_service_input_message import (
NestedRequestMessage,

View File

@@ -1,11 +1,12 @@
import pytest
import datetime
import pytest
import betterproto
from tests.output_betterproto.oneof_default_value_serialization import (
Test,
Message,
NestedMessage,
Test,
)

View File

@@ -1,6 +1,10 @@
import json
from tests.output_betterproto.proto3_field_presence import Test, InnerTest, TestEnum
from tests.output_betterproto.proto3_field_presence import (
InnerTest,
Test,
TestEnum,
)
def test_null_fields_json():

View File

@@ -1,7 +1,7 @@
from tests.output_betterproto.proto3_field_presence_oneof import (
Test,
InnerNested,
Nested,
Test,
WithOptional,
)

View File

@@ -1,4 +1,7 @@
from datetime import datetime, timedelta
from datetime import (
datetime,
timedelta,
)
from tests.output_betterproto.repeated_duration_timestamp import Test