Skip to content

Commit f609160

Browse files
make lint
1 parent 9a8ce25 commit f609160

4 files changed

Lines changed: 15 additions & 14 deletions

File tree

pyiceberg/io/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484
ADLS_ACCOUNT_HOST = "adls.account-host"
8585
ADLS_BLOB_STORAGE_AUTHORITY = "adls.blob-storage-authority"
8686
ADLS_DFS_STORAGE_AUTHORITY = "adls.dfs-storage-authority"
87-
ADLS_BLOB_STORAGE_SCHEME = "adls.blob-storage-scheme",
88-
ADLS_DFS_STORAGE_SCHEME = "adls.dfs-storage-scheme",
87+
ADLS_BLOB_STORAGE_SCHEME = "adls.blob-storage-scheme"
88+
ADLS_DFS_STORAGE_SCHEME = "adls.dfs-storage-scheme"
8989
GCS_TOKEN = "gcs.oauth2.token"
9090
GCS_TOKEN_EXPIRES_AT_MS = "gcs.oauth2.token-expires-at"
9191
GCS_PROJECT_ID = "gcs.project-id"

pyiceberg/io/pyarrow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@
8585
)
8686
from pyiceberg.expressions.visitors import visit as boolean_expression_visit
8787
from pyiceberg.io import (
88-
ADLS_ACCOUNT_NAME,
8988
ADLS_ACCOUNT_KEY,
89+
ADLS_ACCOUNT_NAME,
9090
ADLS_BLOB_STORAGE_AUTHORITY,
91-
ADLS_DFS_STORAGE_AUTHORITY,
9291
ADLS_BLOB_STORAGE_SCHEME,
92+
ADLS_DFS_STORAGE_AUTHORITY,
9393
ADLS_DFS_STORAGE_SCHEME,
9494
ADLS_SAS_TOKEN,
9595
AWS_ACCESS_KEY_ID,

tests/conftest.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@
5252
from pyiceberg.catalog.noop import NoopCatalog
5353
from pyiceberg.expressions import BoundReference
5454
from pyiceberg.io import (
55-
GCS_PROJECT_ID,
56-
GCS_SERVICE_HOST,
57-
GCS_TOKEN,
58-
GCS_TOKEN_EXPIRES_AT_MS,
59-
ADLS_ACCOUNT_NAME,
6055
ADLS_ACCOUNT_KEY,
56+
ADLS_ACCOUNT_NAME,
6157
ADLS_BLOB_STORAGE_AUTHORITY,
62-
ADLS_DFS_STORAGE_SCHEME,
6358
ADLS_BLOB_STORAGE_SCHEME,
6459
ADLS_DFS_STORAGE_AUTHORITY,
60+
ADLS_DFS_STORAGE_SCHEME,
61+
GCS_PROJECT_ID,
62+
GCS_SERVICE_HOST,
63+
GCS_TOKEN,
64+
GCS_TOKEN_EXPIRES_AT_MS,
6565
fsspec,
6666
load_file_io,
6767
)
@@ -355,7 +355,7 @@ def table_schema_with_all_types() -> Schema:
355355

356356

357357
@pytest.fixture(params=["abfss", "wasbs"])
358-
def adls_scheme(request):
358+
def adls_scheme(request: pytest.FixtureRequest) -> str:
359359
return request.param
360360

361361

@@ -2120,7 +2120,7 @@ def adls_fsspec_fileio(request: pytest.FixtureRequest) -> Generator[FsspecFileIO
21202120

21212121

21222122
@pytest.fixture
2123-
def pyarrow_fileio_gcs(request: pytest.FixtureRequest) -> 'PyArrowFileIO':
2123+
def pyarrow_fileio_gcs(request: pytest.FixtureRequest) -> "PyArrowFileIO":
21242124
from pyiceberg.io.pyarrow import PyArrowFileIO
21252125

21262126
properties = {
@@ -2135,10 +2135,11 @@ def pyarrow_fileio_gcs(request: pytest.FixtureRequest) -> 'PyArrowFileIO':
21352135
@pytest.fixture
21362136
def pyarrow_fileio_adls(request: pytest.FixtureRequest) -> Generator[Any, None, None]:
21372137
from azure.storage.blob import BlobServiceClient
2138+
21382139
from pyiceberg.io.pyarrow import PyArrowFileIO
21392140

21402141
azurite_url = request.config.getoption("--adls.endpoint")
2141-
azurite_scheme, azurite_authority = azurite_url.split('://', 1)
2142+
azurite_scheme, azurite_authority = azurite_url.split("://", 1)
21422143

21432144
azurite_account_name = request.config.getoption("--adls.account-name")
21442145
azurite_account_key = request.config.getoption("--adls.account-key")

tests/io/test_pyarrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,7 @@ def test_checking_if_a_file_exists_adls(pyarrow_fileio_adls: PyArrowFileIO, adls
19561956

19571957

19581958
@pytest.mark.adls
1959-
#@pytest.mark.skip(reason="Open issue on Arrow: https://github.com/apache/arrow/issues/36993")
1959+
# @pytest.mark.skip(reason="Open issue on Arrow: https://github.com/apache/arrow/issues/36993")
19601960
def test_closing_a_file_adls(pyarrow_fileio_adls: PyArrowFileIO, adls_scheme: str) -> None:
19611961
"""Test closing an output file and input file"""
19621962
filename = str(uuid4())

0 commit comments

Comments
 (0)