You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by ma...@apache.org on 2023/11/01 11:32:22 UTC
(incubator-opendal) 02/03: sort Python import by isort
This is an automated email from the ASF dual-hosted git repository.
manjusaka pushed a commit to branch manjusaka/python-support-copy
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 96cb858bb3e1b9b27dcfbaa98d774b16585f0941
Author: Manjusaka <me...@manjusaka.me>
AuthorDate: Wed Nov 1 19:23:15 2023 +0800
sort Python import by isort
Signed-off-by: Manjusaka <me...@manjusaka.me>
---
bindings/python/benchmark/async_opendal_benchmark.py | 6 ++++--
bindings/python/python/opendal/__init__.py | 1 -
bindings/python/tests/conftest.py | 4 ++--
bindings/python/tests/test_async_copy.py | 2 +-
bindings/python/tests/test_read.py | 2 +-
bindings/python/tests/test_sync_copy.py | 2 +-
bindings/python/tests/test_write.py | 2 +-
7 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/bindings/python/benchmark/async_opendal_benchmark.py b/bindings/python/benchmark/async_opendal_benchmark.py
index 368eaadbc..6b88b9433 100644
--- a/bindings/python/benchmark/async_opendal_benchmark.py
+++ b/bindings/python/benchmark/async_opendal_benchmark.py
@@ -15,11 +15,13 @@
# specific language governing permissions and limitations
# under the License.
-from pydantic import BaseSettings
import asyncio
-import opendal
import timeit
+from pydantic import BaseSettings
+
+import opendal
+
class Config(BaseSettings):
aws_endpoint: str
diff --git a/bindings/python/python/opendal/__init__.py b/bindings/python/python/opendal/__init__.py
index 35bc589a5..54f3a10ce 100644
--- a/bindings/python/python/opendal/__init__.py
+++ b/bindings/python/python/opendal/__init__.py
@@ -17,6 +17,5 @@
from ._opendal import *
-
__doc__ = _opendal.__doc__
__all__ = _opendal.__all__
diff --git a/bindings/python/tests/conftest.py b/bindings/python/tests/conftest.py
index 6c1a518da..e4a88caa7 100644
--- a/bindings/python/tests/conftest.py
+++ b/bindings/python/tests/conftest.py
@@ -17,10 +17,10 @@
import os
-from dotenv import load_dotenv
import pytest
-import opendal
+from dotenv import load_dotenv
+import opendal
load_dotenv()
pytest_plugins = ("pytest_asyncio",)
diff --git a/bindings/python/tests/test_async_copy.py b/bindings/python/tests/test_async_copy.py
index dadff6401..b5fea80d1 100644
--- a/bindings/python/tests/test_async_copy.py
+++ b/bindings/python/tests/test_async_copy.py
@@ -16,8 +16,8 @@
# under the License.
import os
-from uuid import uuid4
from random import randint
+from uuid import uuid4
import pytest
diff --git a/bindings/python/tests/test_read.py b/bindings/python/tests/test_read.py
index 7c89ac9fd..9c318943c 100644
--- a/bindings/python/tests/test_read.py
+++ b/bindings/python/tests/test_read.py
@@ -16,8 +16,8 @@
# under the License.
import os
-from uuid import uuid4
from random import randint
+from uuid import uuid4
import pytest
diff --git a/bindings/python/tests/test_sync_copy.py b/bindings/python/tests/test_sync_copy.py
index 0a29da976..3db7bb6f1 100644
--- a/bindings/python/tests/test_sync_copy.py
+++ b/bindings/python/tests/test_sync_copy.py
@@ -16,8 +16,8 @@
# under the License.
import os
-from uuid import uuid4
from random import randint
+from uuid import uuid4
import pytest
diff --git a/bindings/python/tests/test_write.py b/bindings/python/tests/test_write.py
index 68395b3fb..987f0ce3c 100644
--- a/bindings/python/tests/test_write.py
+++ b/bindings/python/tests/test_write.py
@@ -16,8 +16,8 @@
# under the License.
import os
-from uuid import uuid4
from random import randint
+from uuid import uuid4
import pytest