From acdc87c1ceab2d306e3d5db670a7df2ed79c0c24 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 12 Oct 2024 20:54:28 +0200 Subject: [PATCH] Enforce ruff rule RUF022 RUF022 `__all__` is not sorted --- fsspec/__init__.py | 12 ++++++------ fsspec/registry.py | 2 +- pyproject.toml | 1 + 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/fsspec/__init__.py b/fsspec/__init__.py index d7af775f7..a71bbeeb0 100644 --- a/fsspec/__init__.py +++ b/fsspec/__init__.py @@ -18,21 +18,21 @@ __all__ = [ "AbstractFileSystem", - "FSTimeoutError", + "Callback", "FSMap", + "FSTimeoutError", + "available_compressions", + "available_protocols", + "caching", "filesystem", - "register_implementation", "get_filesystem_class", "get_fs_token_paths", "get_mapper", "open", "open_files", "open_local", + "register_implementation", "registry", - "caching", - "Callback", - "available_protocols", - "available_compressions", "url_to_fs", ] diff --git a/fsspec/registry.py b/fsspec/registry.py index 02094ea0a..62c38620f 100644 --- a/fsspec/registry.py +++ b/fsspec/registry.py @@ -4,7 +4,7 @@ import types import warnings -__all__ = ["registry", "get_filesystem_class", "default"] +__all__ = ["default", "get_filesystem_class", "registry"] # internal, mutable _registry: dict[str, type] = {} diff --git a/pyproject.toml b/pyproject.toml index ef707f50d..4513962a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -181,6 +181,7 @@ select = [ "PYI", "RUF006", "RUF015", + "RUF022", "RUF024", "SIM", "SLOT",