Skip to content

Commit 4c4aee2

Browse files
Enforce ruff rule RUF022
RUF022 `__all__` is not sorted
1 parent 86762a6 commit 4c4aee2

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
@@ -181,6 +181,7 @@ select = [
181181
"RUF012",
182182
"RUF015",
183183
"RUF019",
184+
"RUF022",
184185
"RUF024",
185186
"SIM",
186187
"SLOT",

0 commit comments

Comments
 (0)