@@ -300,46 +300,46 @@ target-version = "py310"
300300
301301[tool .ruff .lint ]
302302ignore = [
303- " COM812 " , # conflicts with ISC001 on format
304- " CPY001 " , # missing-copyright-notice
305- " D203 " , # incompatible with D211
306- " D213 " , # incompatible with D212
307- " E501 " , # we use black
308- " ERA001 " , # auto-removal of commented out code affects development and vscode integration
309- " INP001 " , # "is part of an implicit namespace package", all false positives
310- " ISC001 " , # conflicts with COM812 on format
311- " PLW2901 " , # PLW2901: Redefined loop variable
312- " RET504 " , # Unnecessary variable assignment before `return` statement
303+ " missing-trailing-comma " , # conflicts with ISC001 on format
304+ " missing-copyright-notice " , # missing-copyright-notice
305+ " incorrect-blank-line-before-class " , # incompatible with D211
306+ " multi-line-summary-second-line " , # incompatible with D212
307+ " line-too-long " , # we use black
308+ " commented-out-code " , # auto-removal of commented out code affects development and vscode integration
309+ " implicit-namespace-package " , # "is part of an implicit namespace package", all false positives
310+ " single-line-implicit-string-concatenation " , # conflicts with COM812 on format
311+ " redefined-loop-name " , # PLW2901: Redefined loop variable
312+ " unnecessary-assign " , # Unnecessary variable assignment before `return` statement
313313 # temporary disabled until we fix them:
314314 " ANN" ,
315- " ARG002 " , # Unused method argument (currently in too many places)
316- " D102 " , # Missing docstring in public method (currently in too many places)
317- " FBT001 " ,
318- " FBT003 " ,
319- " FURB189 " , # Subclassing `dict` can be error prone, use `collections.UserDict` instead
320- " PD011 " , # We are not using pandas, any .values attributes are unrelated
321- " PERF203 " ,
315+ " unused-method-argument " , # Unused method argument (currently in too many places)
316+ " undocumented-public-method " , # Missing docstring in public method (currently in too many places)
317+ " boolean-type-hint-positional-argument " ,
318+ " boolean-positional-value-in-call " ,
319+ " subclass-builtin " , # Subclassing `dict` can be error prone, use `collections.UserDict` instead
320+ " pandas-use-of-dot-values " , # We are not using pandas, any .values attributes are unrelated
321+ " try-except-in-loop " ,
322322 " PLR" ,
323- " PLW0603 " , # global lock file in cache dir
324- " RUF012 " , # Mutable class attributes should be annotated with `typing.ClassVar`
325- " RUF045 " , # Assignment without annotation found in dataclass body
323+ " global-statement " , # global lock file in cache dir
324+ " mutable-class-default " , # Mutable class attributes should be annotated with `typing.ClassVar`
325+ " implicit-class-var-in-dataclass " , # Assignment without annotation found in dataclass body
326326 # part of preview rules:
327- " B909 " , # raise-missing-from
328- " DOC201 " , # docstring-missing-returns
329- " DOC402 " , # docstring-missing-summary
330- " DOC501 " , # docstring-missing-exception
331- " FURB101 " ,
332- " FURB103 " ,
333- " FURB110 " ,
334- " FURB113 " ,
335- " FURB118 " ,
336- " PLC0207 " , # maxsplit with [-1] preview rule
337- " D421 " , # property-docstring-starts-with-verb (preview, too many existing violations)
338- " PLC0415 " ,
339- " PLC2701 " ,
340- " PLW1641 " ,
341- " RUF067 " ,
342- " S404 " ,
327+ " loop-iterator-mutation " , # raise-missing-from
328+ " docstring-missing-returns " , # docstring-missing-returns
329+ " docstring-missing-yields " , # docstring-missing-summary
330+ " docstring-missing-exception " , # docstring-missing-exception
331+ " read-whole-file " ,
332+ " write-whole-file " ,
333+ " if-exp-instead-of-or-operator " ,
334+ " repeated-append " ,
335+ " reimplemented-operator " ,
336+ " missing-maxsplit-arg " , # maxsplit with [-1] preview rule
337+ " property-docstring-starts-with-verb " , # property-docstring-starts-with-verb (preview, too many existing violations)
338+ " import-outside-top-level " ,
339+ " import-private-name " ,
340+ " eq-without-hash " ,
341+ " non-empty-init-module " ,
342+ " suspicious-subprocess-import " ,
343343]
344344select = [" ALL" ]
345345
@@ -360,7 +360,12 @@ max-complexity = 20
360360"src/ansiblelint/{utils,file_utils,runner,loaders,constants,config,cli,_mockings}.py" = [
361361 " PTH" ,
362362]
363- "test/**/*.py" = [" DOC201" , " DOC501" , " PLC2701" , " S" ]
363+ "test/**/*.py" = [
364+ " docstring-missing-returns" ,
365+ " docstring-missing-exception" ,
366+ " import-private-name" ,
367+ " S"
368+ ]
364369
365370[tool .ruff .lint .pydocstyle ]
366371convention = " google"
0 commit comments