File tree Expand file tree Collapse file tree 6 files changed +6
-16
lines changed Expand file tree Collapse file tree 6 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -148,16 +148,20 @@ extend-ignore = [
148
148
# to export for public use.
149
149
'src/trio/__init__.py' = [' F401' ]
150
150
'src/trio/_core/__init__.py' = [' F401' ]
151
- 'src/trio/abc.py' = [' F401' ]
151
+ 'src/trio/abc.py' = [' F401' , ' A005 ' ]
152
152
'src/trio/lowlevel.py' = [' F401' ]
153
- 'src/trio/socket.py' = [' F401' ]
153
+ 'src/trio/socket.py' = [' F401' , ' A005 ' ]
154
154
'src/trio/testing/__init__.py' = [' F401' ]
155
155
# RUF029 is ignoring tests that are marked as async functions but
156
156
# do not use an await in their function bodies. There are several
157
157
# places where internal trio synchronous code relies on being
158
158
# called from an async function, where current task is set up.
159
159
'src/trio/_tests/*.py' = [' RUF029' ]
160
160
'src/trio/_core/_tests/*.py' = [' RUF029' ]
161
+ # A005 is ignoring modules that shadow stdlib modules.
162
+ 'src/trio/_abc.py' = [' A005' ]
163
+ 'src/trio/_socket.py' = [' A005' ]
164
+ 'src/trio/_ssl.py' = [' A005' ]
161
165
162
166
[tool .ruff .lint .isort ]
163
167
combine-as-imports = true
Original file line number Diff line number Diff line change 1
- # ruff: noqa: A005
2
- # Module `_abc` is shadowing a Python builtin module
3
-
4
1
from __future__ import annotations
5
2
6
3
import socket
Original file line number Diff line number Diff line change 1
- # ruff: noqa: A005
2
- # Module `_socket` is shadowing a Python builtin module
3
-
4
1
# ruff: noqa: PYI063 # Several cases throughout file where
5
2
# argument names with __ used because of typeshed, see comment for recv in _SocketType
6
3
Original file line number Diff line number Diff line change 1
- # ruff: noqa: A005
2
- # Module `_ssl` is shadowing a Python builtin module
3
-
4
1
from __future__ import annotations
5
2
6
3
import contextlib
Original file line number Diff line number Diff line change 1
- # ruff: noqa: A005
2
- # Module `abc` is shadowing a Python builtin module
3
1
# This is a public namespace, so we don't want to expose any non-underscored
4
2
# attributes that aren't actually part of our public API. But it's very
5
3
# annoying to carefully always use underscored names for module-level
Original file line number Diff line number Diff line change 1
- # ruff: noqa: A005
2
- # Module `socket` is shadowing a Python builtin module
3
-
4
1
from __future__ import annotations
5
2
6
3
# This is a public namespace, so we don't want to expose any non-underscored
You can’t perform that action at this time.
0 commit comments