Skip to content

Commit 2599905

Browse files
committed
fix isort
Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
1 parent 85d6694 commit 2599905

34 files changed

+33
-63
lines changed

samples/http-image-cloudevents/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import sys
1616

1717
import requests
18-
1918
from cloudevents_v1.conversion import to_binary, to_structured
2019
from cloudevents_v1.http import CloudEvent
2120

samples/http-image-cloudevents/image_sample_server.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414

1515
import io
1616

17+
from cloudevents_v1.http import from_http
1718
from flask import Flask, request
1819
from PIL import Image
1920

20-
from cloudevents_v1.http import from_http
21-
2221
app = Flask(__name__)
2322

2423

samples/http-image-cloudevents/image_sample_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818

1919
import pytest
2020
from client import image_bytes
21-
from image_sample_server import app
22-
from PIL import Image
23-
2421
from cloudevents_v1.conversion import to_binary, to_structured
2522
from cloudevents_v1.http import CloudEvent, from_http
23+
from image_sample_server import app
24+
from PIL import Image
2625

2726
image_fileobj = io.BytesIO(image_bytes)
2827
image_expected_shape = (1880, 363)

samples/http-json-cloudevents/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import sys
1616

1717
import requests
18-
1918
from cloudevents_v1.conversion import to_binary, to_structured
2019
from cloudevents_v1.http import CloudEvent
2120

samples/http-json-cloudevents/json_sample_server.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15-
from flask import Flask, request
16-
1715
from cloudevents_v1.http import from_http
16+
from flask import Flask, request
1817

1918
app = Flask(__name__)
2019

samples/http-json-cloudevents/json_sample_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
# under the License.
1414

1515
import pytest
16-
from json_sample_server import app
17-
1816
from cloudevents_v1.conversion import to_binary, to_structured
1917
from cloudevents_v1.http import CloudEvent
18+
from json_sample_server import app
2019

2120

2221
@pytest.fixture

src/cloudevents/v1/conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from cloudevents_v1.abstract import AnyCloudEvent
2121
from cloudevents_v1.sdk import converters, marshaller, types
2222
from cloudevents_v1.sdk.converters import is_binary
23-
from cloudevents_v1.sdk.event import v1, v03
23+
from cloudevents_v1.sdk.event import v03, v1
2424

2525

2626
def _best_effort_serialize_to_json( # type: ignore[no-untyped-def]

src/cloudevents/v1/http/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import cloudevents_v1.exceptions as cloud_exceptions
2020
from cloudevents_v1 import abstract
21-
from cloudevents_v1.sdk.event import v1, v03
21+
from cloudevents_v1.sdk.event import v03, v1
2222

2323
_required_by_version = {
2424
"1.0": v1.Event._ce_required_fields,

src/cloudevents/v1/http/event_type.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
# under the License.
1414
import typing
1515

16-
from deprecation import deprecated
17-
1816
from cloudevents_v1.sdk.converters import is_binary as _moved_is_binary
1917
from cloudevents_v1.sdk.converters import is_structured as _moved_is_structured
18+
from deprecation import deprecated
2019

2120
# THIS MODULE IS DEPRECATED, YOU SHOULD NOT ADD NEW FUNCTIONALLY HERE
2221

src/cloudevents/v1/http/http_methods.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414

1515
import typing
1616

17-
from deprecation import deprecated
18-
1917
from cloudevents_v1.abstract import AnyCloudEvent
2018
from cloudevents_v1.conversion import to_binary as _moved_to_binary
2119
from cloudevents_v1.conversion import to_structured as _moved_to_structured
2220
from cloudevents_v1.http.conversion import from_http as _moved_from_http
2321
from cloudevents_v1.http.event import CloudEvent
2422
from cloudevents_v1.sdk import types
23+
from deprecation import deprecated
2524

2625
# THIS MODULE IS DEPRECATED, YOU SHOULD NOT ADD NEW FUNCTIONALLY HERE
2726

0 commit comments

Comments
 (0)