Skip to content

Commit e92111b

Browse files
authored
Upgrade dev dependencies and fix linting errors (#93)
* Revert changes to `_version.py` * Upgrade dev dependencies and fix linting errors
1 parent 53950ed commit e92111b

File tree

4 files changed

+1908
-1085
lines changed

4 files changed

+1908
-1085
lines changed

deno.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
"lint": {
4848
"rules": {
4949
"exclude": [
50-
"prefer-const"
50+
"prefer-const",
51+
"no-import-prefix"
5152
]
5253
}
5354
}

src/quak/_util.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ def arrow_table_from_ipc(data: bytes | memoryview) -> pa.lib.Table:
7070
return feather.read_table(io.BytesIO(data))
7171

7272

73-
def table_to_ipc(table: pa.lib.Table | pa.lib.RecordBatch | pa.lib.RecordBatchReader) -> memoryview:
73+
def table_to_ipc(
74+
table: pa.lib.Table | pa.lib.RecordBatch | pa.lib.RecordBatchReader,
75+
) -> memoryview:
7476
"""Convert Arrow tabular data to an Arrow IPC message."""
7577
import io
7678

@@ -83,7 +85,8 @@ def table_to_ipc(table: pa.lib.Table | pa.lib.RecordBatch | pa.lib.RecordBatchRe
8385
table = pa.Table.from_batches([table], schema=table.schema)
8486
elif not isinstance(table, pa.Table):
8587
raise TypeError(
86-
f"Expected a pyarrow Table, RecordBatch, or RecordBatchReader, got {type(table)!r}"
88+
"Expected a pyarrow Table, RecordBatch, or RecordBatchReader,",
89+
f"got {type(table)!r}",
8790
)
8891

8992
sink = io.BytesIO()

src/quak/_version.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@
22

33
import importlib.metadata
44

5-
try:
6-
__version__ = importlib.metadata.version("quak")
7-
except importlib.metadata.PackageNotFoundError: # pragma: no cover - local dev fallback
8-
__version__ = "0+local"
5+
__version__ = importlib.metadata.version("quak")

0 commit comments

Comments
 (0)