Skip to content

Commit acdc87c

Browse files
Enforce ruff rule RUF022
RUF022 `__all__` is not sorted
1 parent 4d1ec47 commit acdc87c

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

fsspec/__init__.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818

1919
__all__ = [
2020
"AbstractFileSystem",
21-
"FSTimeoutError",
21+
"Callback",
2222
"FSMap",
23+
"FSTimeoutError",
24+
"available_compressions",
25+
"available_protocols",
26+
"caching",
2327
"filesystem",
24-
"register_implementation",
2528
"get_filesystem_class",
2629
"get_fs_token_paths",
2730
"get_mapper",
2831
"open",
2932
"open_files",
3033
"open_local",
34+
"register_implementation",
3135
"registry",
32-
"caching",
33-
"Callback",
34-
"available_protocols",
35-
"available_compressions",
3636
"url_to_fs",
3737
]
3838

fsspec/registry.py

+1-1
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

+1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ select = [
181181
"PYI",
182182
"RUF006",
183183
"RUF015",
184+
"RUF022",
184185
"RUF024",
185186
"SIM",
186187
"SLOT",

0 commit comments

Comments
 (0)