Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,13 @@ line-length = 119
[tool.ruff.isort]
lines-after-imports = 2
known-first-party = ["datasets"]

[tool.pytest.ini_options]
# Test fails if a FutureWarning is thrown by `huggingface_hub`
filterwarnings = [
"error::FutureWarning:huggingface_hub*",
]
markers = [
"unit: unit test",
"integration: integration test",
]
10 changes: 0 additions & 10 deletions setup.cfg

This file was deleted.

6 changes: 1 addition & 5 deletions src/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# flake8: noqa
# ruff: noqa
# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -13,10 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
# pylint: enable=line-too-long
# pylint: disable=g-import-not-at-top,g-bad-import-order,wrong-import-position

__version__ = "2.16.2.dev0"

from .arrow_dataset import Dataset
Expand Down
2 changes: 1 addition & 1 deletion src/datasets/features/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# flake8: noqa
# ruff: noqa

__all__ = [
"Audio",
Expand Down
3 changes: 1 addition & 2 deletions src/datasets/formatting/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# flake8: noqa
# Lint as: python3
# ruff: noqa

from typing import Dict, List, Optional, Type

Expand Down
3 changes: 1 addition & 2 deletions src/datasets/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# flake8: noqa
# Lint as: python3
# ruff: noqa

from . import tqdm as _tqdm # _tqdm is the module
from .info_utils import VerificationMode
Expand Down