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 Oct 12, 2024
1 parent 176efbe commit 80c5856
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 @@ -179,6 +179,7 @@ select = [
"PYI",
"RUF006",
"RUF015",
"RUF022",
"RUF024",
"SLOT",
"SIM101",
Expand Down

0 comments on commit 80c5856

Please sign in to comment.