From 80c585696ecc8b94151d2f2f8e77bc04d7d89bf9 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 c261b9b08..8d2e2068e 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 48368711f..e725ca66a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -179,6 +179,7 @@ select = [ "PYI", "RUF006", "RUF015", + "RUF022", "RUF024", "SLOT", "SIM101",