Skip to content

Commit 29e4efe

Browse files
Enforce ruff rule RUF022
RUF022 `__all__` is not sorted
1 parent 66340a1 commit 29e4efe

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

fsspec/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@
1616

1717
__all__ = [
1818
"AbstractFileSystem",
19-
"FSTimeoutError",
19+
"Callback",
2020
"FSMap",
21+
"FSTimeoutError",
22+
"available_compressions",
23+
"available_protocols",
24+
"caching",
2125
"filesystem",
22-
"register_implementation",
2326
"get_filesystem_class",
2427
"get_fs_token_paths",
2528
"get_mapper",
2629
"open",
2730
"open_files",
2831
"open_local",
32+
"register_implementation",
2933
"registry",
30-
"caching",
31-
"Callback",
32-
"available_protocols",
33-
"available_compressions",
3434
"url_to_fs",
3535
]
3636

fsspec/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import types
55
import warnings
66

7-
__all__ = ["registry", "get_filesystem_class", "default"]
7+
__all__ = ["default", "get_filesystem_class", "registry"]
88

99
# internal, mutable
1010
_registry: dict[str, type] = {}

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ select = [
179179
"PYI",
180180
"RUF006",
181181
"RUF015",
182+
"RUF022",
182183
"RUF024",
183184
"SIM",
184185
"SLOT",

0 commit comments

Comments
 (0)