Skip to content

Commit

Permalink
Enforce ruff rule RUF022
Browse files Browse the repository at this point in the history
RUF022 `__all__` is not sorted
  • Loading branch information
DimitriPapadopoulos committed Nov 15, 2024
1 parent 4d1ec47 commit acdc87c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions fsspec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

Expand Down
2 changes: 1 addition & 1 deletion fsspec/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {}
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ select = [
"PYI",
"RUF006",
"RUF015",
"RUF022",
"RUF024",
"SIM",
"SLOT",
Expand Down

0 comments on commit acdc87c

Please sign in to comment.