Skip to content

Commit d6d6f58

Browse files
committed
style: fixx ruff check errors
1 parent 6f596c9 commit d6d6f58

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libs/libcommon/src/libcommon/parquet_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
from datasets.utils.py_utils import size_str
1818
from fsspec.implementations.http import HTTPFile, HTTPFileSystem
1919
from huggingface_hub import HfFileSystem
20+
from libviewer import Dataset as LibviewerDataset # type: ignore [import-untyped]
2021
from pyarrow.lib import ArrowInvalid
2122

2223
from libcommon.constants import CONFIG_PARQUET_METADATA_KIND
2324
from libcommon.prometheus import StepProfiler
2425
from libcommon.simple_cache import get_previous_step_or_raise
2526
from libcommon.storage import StrPath
2627
from libcommon.viewer_utils.features import get_supported_unsupported_columns
27-
from libviewer import Dataset as LibviewerDataset # type: ignore [import-untyped]
2828

2929
# For partial Parquet export we have paths like "en/partial-train/0000.parquet".
3030
# "-" is not allowed is split names so we use it in the prefix to avoid collisions.

libs/libcommon/src/libcommon/viewer_utils/features.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# SPDX-License-Identifier: Apache-2.0
22
# Copyright 2022 The HuggingFace Authors.
33

4-
from collections.abc import Sequence
54
import json
65
import logging
76
import os
7+
from collections.abc import Sequence
88
from io import BytesIO
99
from typing import Any, Optional, Union
1010
from zlib import adler32
@@ -534,7 +534,7 @@ def to_features_list(features: Features) -> list[FeatureItem]:
534534

535535
def get_supported_unsupported_columns(
536536
features: Features,
537-
unsupported_features: Sequence[FeatureType],
537+
unsupported_features: Sequence[FeatureType] = (),
538538
) -> tuple[list[str], list[str]]:
539539
supported_columns, unsupported_columns = [], []
540540

libs/libviewer/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Krisztián Szűcs <[email protected]>"]
33
description = "Library for utils common to all the services"
44
name = "libviewer"
5-
version = "0.6.8"
5+
version = "0.1.0"
66
license = "Apache-2.0"
77

88
[tool.poetry.dependencies]

0 commit comments

Comments
 (0)