diff --git a/pyproject.toml b/pyproject.toml index e396d8d1c65..d572ac3ee76 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", +] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index c64d667239e..00000000000 --- a/setup.cfg +++ /dev/null @@ -1,10 +0,0 @@ -[metadata] -license_files = LICENSE - -[tool:pytest] -# Test fails if a FutureWarning is thrown by `huggingface_hub` -filterwarnings = - error::FutureWarning:huggingface_hub* -markers = - unit: unit test - integration: integration test diff --git a/src/datasets/__init__.py b/src/datasets/__init__.py index 59f2cbdc50f..1eaf4a06b50 100644 --- a/src/datasets/__init__.py +++ b/src/datasets/__init__.py @@ -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"); @@ -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 diff --git a/src/datasets/features/__init__.py b/src/datasets/features/__init__.py index d8f72f31d6f..65ae879a2bb 100644 --- a/src/datasets/features/__init__.py +++ b/src/datasets/features/__init__.py @@ -1,4 +1,4 @@ -# flake8: noqa +# ruff: noqa __all__ = [ "Audio", diff --git a/src/datasets/formatting/__init__.py b/src/datasets/formatting/__init__.py index 5f8090e0d70..ba1edcff070 100644 --- a/src/datasets/formatting/__init__.py +++ b/src/datasets/formatting/__init__.py @@ -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 diff --git a/src/datasets/utils/__init__.py b/src/datasets/utils/__init__.py index 001fca727b3..5df74ff8cac 100644 --- a/src/datasets/utils/__init__.py +++ b/src/datasets/utils/__init__.py @@ -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