@@ -215,6 +215,8 @@ select = [
215
215
" PLE" , " PLR" , " PLW" ,
216
216
# misc lints
217
217
" PIE" ,
218
+ # flake8-pyi
219
+ " PYI" ,
218
220
# tidy imports
219
221
" TID" ,
220
222
# implicit string concatenation
@@ -266,6 +268,14 @@ ignore = [
266
268
" PLR0915" ,
267
269
# Global statements are discouraged
268
270
" PLW0603" ,
271
+ # Docstrings should not be included in stubs
272
+ " PYI021" ,
273
+ # Use typing_extensions.TypeAlias for type aliases
274
+ # "PYI026", # not yet implemented
275
+ # Use "collections.abc.*" instead of "typing.*" (PEP 585 syntax)
276
+ # "PYI027", # not yet implemented
277
+ # while int | float can be shortened to float, the former is more explicit
278
+ # "PYI041", # not yet implemented
269
279
270
280
# Additional checks that don't pass yet
271
281
# Within an except clause, raise exceptions with ...
@@ -281,6 +291,8 @@ exclude = [
281
291
" doc/build/*.py" ,
282
292
" doc/temp/*.py" ,
283
293
" .eggs/*.py" ,
294
+ # vendored files
295
+ " pandas/util/version/*" ,
284
296
" versioneer.py" ,
285
297
# exclude asv benchmark environments from linting
286
298
" env" ,
@@ -292,8 +304,9 @@ exclude = [
292
304
# to be enabled gradually
293
305
"pandas/core/*" = [" PLR5501" , " PLW2901" ]
294
306
"pandas/io/*" = [" PLW2901" ]
295
- "pandas/tests/*" = [" PLW2901" ]
307
+ "pandas/tests/*" = [" B028 " , " PLW2901" ]
296
308
"pandas/plotting/*" = [" PLW2901" ]
309
+ "scripts/*" = [" B028" ]
297
310
# Keep this one enabled
298
311
"pandas/_typing.py" = [" TCH" ]
299
312
0 commit comments