Skip to content

Commit 38becf3

Browse files
Enforce ruff rule RUF022
RUF022 `__all__` is not sorted
1 parent d1aaebf commit 38becf3

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Diff for: 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

Diff for: 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] = {}

Diff for: pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ select = [
180180
"PYI",
181181
"RUF006",
182182
"RUF015",
183+
"RUF022",
183184
"RUF024",
184185
"SIM",
185186
"SLOT",

0 commit comments

Comments
 (0)