@@ -255,13 +255,13 @@ disable = [
255255 " deprecated-method" ,
256256]
257257[tool .pylint .'DESIGN' ]
258- max-args = 38 # Default is 5
259- max-attributes = 28 # Default is 7
260- max-branches = 34 # Default is 12
261- max-locals = 45 # Default is 15
262- max-module-lines = 2468 # Default is 1000
263- max-nested-blocks = 9 # Default is 5
264- max-statements = 206 # Default is 50
258+ max-args = 20 # Default is 5
259+ max-attributes = 22 # Default is 7
260+ max-branches = 22 # Default is 12
261+ max-locals = 39 # Default is 15
262+ max-module-lines = 1500 # Default is 1000
263+ max-nested-blocks = 6 # Default is 5
264+ max-statements = 102 # Default is 50
265265
266266[tool .pylint .'SIMILARITIES' ]
267267min-similarity-lines = 6
@@ -285,7 +285,6 @@ asyncio_default_fixture_loop_scope = "class"
285285python_version = " 3.9"
286286disallow_incomplete_defs = true
287287warn_return_any = false
288- warn_unused_configs = true
289288ignore_missing_imports = true
290289check_untyped_defs = true
291290
@@ -340,26 +339,23 @@ ignore = [
340339 " PERF203" , # `try`-`except` within a loop incurs performance overhead
341340 " PERF401" , # Use a list comprehension to create a transformed list
342341 " PLR1714" , # repeated-equality-comparison
343- " PLR5501" , # collapsible-else-if
344342 " PLW0603" , # global-statement
345- " PLW1510" , # subprocess-run-without-check
346343 " PLW2901" , # redefined-loop-name
347344 " SIM108" , # if-else-block-instead-of-if-exp
348- " SIM115" , # open-file-with-context-handler
349345 " SIM118" , # in-dict-keys
350346]
351347
352348[tool .ruff .lint .mccabe ]
353- max-complexity = 28
349+ max-complexity = 20
354350
355351
356352[tool .ruff .lint .pylint ]
357353allow-magic-value-types = [" float" , " int" , " str" ]
358- max-args = 14 # Default is 5
354+ max-args = 13 # Default is 5
359355max-branches = 21 # Default is 12
360356max-public-methods = 20 # Default is 20
361357max-returns = 7 # Default is 6
362- max-statements = 60 # Default is 50
358+ max-statements = 56 # Default is 50
363359
364360[tool .coverage .run ]
365361omit = [" haystack/testing/*" ]
0 commit comments