@@ -84,7 +84,7 @@ pytest-only = "~2.1.0"
84
84
pytest-timeout = " ~2.3.0"
85
85
pytest-xdist = " ~3.6.0"
86
86
respx = " ~0.21.0"
87
- ruff = " ~0.7 .0"
87
+ ruff = " ~0.8 .0"
88
88
setuptools = " ~75.6.0" # setuptools are used by pytest, but not explicitly required
89
89
sortedcontainers-stubs = " ^2.4.2"
90
90
types-beautifulsoup4 = " ~4.12.0.20240229"
@@ -109,8 +109,6 @@ line-length = 120
109
109
[tool .ruff .lint ]
110
110
select = [" ALL" ]
111
111
ignore = [
112
- " ANN101" , # Missing type annotation for `self` in method
113
- " ANN102" , # Missing type annotation for `{name}` in classmethod
114
112
" ANN401" , # Dynamically typed expressions (typing.Any) are disallowed in {filename}
115
113
" ASYNC109" , # Async function definition with a `timeout` parameter
116
114
" BLE001" , # Do not catch blind exception
@@ -158,18 +156,21 @@ indent-style = "space"
158
156
" TRY301" , # Abstract `raise` to an inner function
159
157
]
160
158
"**/{docs}/**" = [
161
- " D" , # Everything from the pydocstyle
162
- " INP001" , # File {filename} is part of an implicit namespace package, add an __init__.py
163
- " F841" , # Local variable {variable} is assigned to but never used
164
- " N999" , # Invalid module name
159
+ " D" , # Everything from the pydocstyle
160
+ " INP001" , # File {filename} is part of an implicit namespace package, add an __init__.py
161
+ " F841" , # Local variable {variable} is assigned to but never used
162
+ " N999" , # Invalid module name
165
163
]
166
164
167
165
[tool .ruff .lint .flake8-quotes ]
168
166
docstring-quotes = " double"
169
167
inline-quotes = " single"
170
168
171
169
[tool .ruff .lint .flake8-type-checking ]
172
- runtime-evaluated-base-classes = [" pydantic.BaseModel" , " pydantic_settings.BaseSettings" ]
170
+ runtime-evaluated-base-classes = [
171
+ " pydantic.BaseModel" ,
172
+ " pydantic_settings.BaseSettings" ,
173
+ ]
173
174
174
175
[tool .ruff .lint .flake8-builtins ]
175
176
builtins-ignorelist = [" id" ]
@@ -217,7 +218,7 @@ ignore_missing_imports = true
217
218
exclude_lines = [
218
219
" pragma: no cover" ,
219
220
" if TYPE_CHECKING:" ,
220
- " assert_never()"
221
+ " assert_never()" ,
221
222
]
222
223
223
224
[tool .basedpyright ]
0 commit comments