@@ -146,31 +146,31 @@ select = [
146146 " YTT" , # flake8-2020
147147]
148148extend-ignore = [
149- " A002 " , # builtin-argument-shadowing
150- " ANN401 " , # any-type (mypy's `disallow_any_explicit` is better)
151- " E402 " , # module-import-not-at-top-of-file (usually OS-specific)
152- " E501 " , # line-too-long
153- " F403 " , # undefined-local-with-import-star
154- " F405 " , # undefined-local-with-import-star-usage
155- " PERF203 " , # try-except-in-loop (not always possible to refactor)
156- " PT012 " , # multiple statements in pytest.raises block
157- " SIM117 " , # multiple-with-statements (messes up lots of context-based stuff and looks bad)
158- " RUF067 " , # non-empty-init-module, since we need lots of logic in our __init__
149+ " builtin-argument-shadowing " , # builtin-argument-shadowing
150+ " any-type " , # any-type (mypy's `disallow_any_explicit` is better)
151+ " module-import-not-at-top-of-file " , # module-import-not-at-top-of-file (usually OS-specific)
152+ " line-too-long " , # line-too-long
153+ " undefined-local-with-import-star " , # undefined-local-with-import-star
154+ " undefined-local-with-import-star-usage " , # undefined-local-with-import-star-usage
155+ " try-except-in-loop " , # try-except-in-loop (not always possible to refactor)
156+ " pytest-raises-with-multiple-statements " , # multiple statements in pytest.raises block
157+ " multiple-with-statements " , # multiple-with-statements (messes up lots of context-based stuff and looks bad)
158+ " non-empty-init-module " , # non-empty-init-module, since we need lots of logic in our __init__
159159
160160 # conflicts with formatter (ruff recommends these be disabled)
161- " COM812 " ,
161+ " missing-trailing-comma " ,
162162]
163163
164164[tool .ruff .lint .per-file-ignores ]
165165# F401 is ignoring unused imports. For these particular files,
166166# these are public APIs where we are importing everything we want
167167# to export for public use.
168- 'src/trio/__init__.py' = [' F401 ' ]
169- 'src/trio/_core/__init__.py' = [' F401 ' ]
170- 'src/trio/abc.py' = [' F401 ' , ' A005 ' ]
171- 'src/trio/lowlevel.py' = [' F401 ' ]
172- 'src/trio/socket.py' = [' F401 ' , ' A005 ' ]
173- 'src/trio/testing/__init__.py' = [' F401 ' ]
168+ 'src/trio/__init__.py' = [' unused-import ' ]
169+ 'src/trio/_core/__init__.py' = [' unused-import ' ]
170+ 'src/trio/abc.py' = [' unused-import ' , ' stdlib-module-shadowing ' ]
171+ 'src/trio/lowlevel.py' = [' unused-import ' ]
172+ 'src/trio/socket.py' = [' unused-import ' , ' stdlib-module-shadowing ' ]
173+ 'src/trio/testing/__init__.py' = [' unused-import ' ]
174174
175175# RUF029 is ignoring tests that are marked as async functions but
176176# do not use an await in their function bodies. There are several
@@ -179,12 +179,12 @@ extend-ignore = [
179179#
180180# RUF069 is ignoring exact float comparison, because we use that
181181# in combination with autojump clocks
182- 'src/trio/_tests/*.py' = [' RUF029 ' , ' RUF069 ' ]
183- 'src/trio/_core/_tests/*.py' = [' RUF029 ' , ' RUF069 ' ]
182+ 'src/trio/_tests/*.py' = [' unused-async ' , ' float-equality-comparison ' ]
183+ 'src/trio/_core/_tests/*.py' = [' unused-async ' , ' float-equality-comparison ' ]
184184# A005 is ignoring modules that shadow stdlib modules.
185- 'src/trio/_abc.py' = [' A005 ' ]
186- 'src/trio/_socket.py' = [' A005 ' ]
187- 'src/trio/_ssl.py' = [' A005 ' ]
185+ 'src/trio/_abc.py' = [' stdlib-module-shadowing ' ]
186+ 'src/trio/_socket.py' = [' stdlib-module-shadowing ' ]
187+ 'src/trio/_ssl.py' = [' stdlib-module-shadowing ' ]
188188
189189[tool .ruff .lint .isort ]
190190combine-as-imports = true
0 commit comments