File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 23
23
24
24
__all__ = [
25
25
"NoSuchStubError" ,
26
- "StubMetadata" ,
27
26
"PackageDependencies" ,
27
+ "StubMetadata" ,
28
28
"StubtestSettings" ,
29
29
"get_recursive_requirements" ,
30
30
"read_dependencies" ,
Original file line number Diff line number Diff line change @@ -77,10 +77,6 @@ extend-safe-fixes = [
77
77
" UP036" , # Remove unnecessary `sys.version_info` blocks
78
78
]
79
79
ignore = [
80
- # TODO: Ruff 0.8.0 added sorting of __all__ and __slots_. Validate whether we want this in stubs
81
- " RUF022" ,
82
- " RUF023" ,
83
-
84
80
# ##
85
81
# Rules that can conflict with the formatter (Black)
86
82
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
@@ -106,6 +102,11 @@ ignore = [
106
102
107
103
[tool .ruff .lint .per-file-ignores ]
108
104
"*.pyi" = [
105
+ # Ruff 0.8.0 added sorting of __all__ and __slots_.
106
+ # There is no consensus on whether we want to apply this to stubs, so keeping the status quo.
107
+ # See https://github.com/python/typeshed/pull/13108
108
+ " RUF022" ,
109
+ " RUF023" ,
109
110
# Most flake8-bugbear rules don't apply for third-party stubs like typeshed.
110
111
# B033 could be slightly useful but Ruff doesn't have per-file select
111
112
" B" , # flake8-bugbear
You can’t perform that action at this time.
0 commit comments