1+ # cspell: ignore FURB
2+
13[build-system ]
24build-backend = " setuptools.build_meta"
35requires = [
@@ -222,11 +224,13 @@ cache-dir = "./.cache/.ruff"
222224fix = true
223225# Same as Black.
224226line-length = 88
227+ preview = true
225228target-version = " py310"
226229
227230[tool .ruff .lint ]
228231ignore = [
229232 " COM812" , # conflicts with ISC001 on format
233+ " CPY001" , # missing-copyright-notice
230234 " D203" , # incompatible with D211
231235 " D213" , # incompatible with D212
232236 " E501" , # we use black
@@ -245,7 +249,21 @@ ignore = [
245249 " RUF012" , # Mutable class attributes should be annotated with `typing.ClassVar`
246250 " PERF203" ,
247251 " PD011" , # We are not using pandas, any .values attributes are unrelated
248- " PLW0603" # global lock file in cache dir
252+ " PLW0603" , # global lock file in cache dir
253+ # part of preview rules:
254+ " B909" , # raise-missing-from
255+ " DOC201" , # docstring-missing-returns
256+ " DOC402" , # docstring-missing-summary
257+ " DOC501" , # docstring-missing-exception
258+ " FURB101" ,
259+ " FURB103" ,
260+ " FURB110" ,
261+ " FURB113" ,
262+ " FURB118" ,
263+ " PLC0415" ,
264+ " PLC2701" ,
265+ " PLW1641" ,
266+ " S404"
249267]
250268select = [" ALL" ]
251269
@@ -269,7 +287,7 @@ max-complexity = 20
269287"src/ansiblelint/{utils,file_utils,runner,loaders,constants,config,cli,_mockings}.py" = [
270288 " PTH"
271289]
272- "test/**/*.py" = [" S" ]
290+ "test/**/*.py" = [" DOC201 " , " DOC501 " , " PLC2701 " , " S" ]
273291
274292[tool .ruff .lint .pydocstyle ]
275293convention = " google"
0 commit comments