mirror of https://github.com/astral-sh/ruff
[`pylint`] Fix missing `max-nested-blocks` in settings display (#20574)
Summary -- This fixes a bug pointed out in #20560 where one of the `pylint` settings wasn't used in its `Display` implementation. Test Plan -- Existing tests with updated snapshots
This commit is contained in:
parent
beec2f2dbb
commit
9903104328
|
|
@ -2445,6 +2445,7 @@ requires-python = ">= 3.11"
|
|||
linter.pylint.max_statements = 50
|
||||
linter.pylint.max_public_methods = 20
|
||||
linter.pylint.max_locals = 15
|
||||
linter.pylint.max_nested_blocks = 5
|
||||
linter.pyupgrade.keep_runtime_typing = false
|
||||
linter.ruff.parenthesize_tuple_in_subscript = false
|
||||
|
||||
|
|
@ -2758,6 +2759,7 @@ requires-python = ">= 3.11"
|
|||
linter.pylint.max_statements = 50
|
||||
linter.pylint.max_public_methods = 20
|
||||
linter.pylint.max_locals = 15
|
||||
linter.pylint.max_nested_blocks = 5
|
||||
linter.pyupgrade.keep_runtime_typing = false
|
||||
linter.ruff.parenthesize_tuple_in_subscript = false
|
||||
|
||||
|
|
@ -3070,6 +3072,7 @@ requires-python = ">= 3.11"
|
|||
linter.pylint.max_statements = 50
|
||||
linter.pylint.max_public_methods = 20
|
||||
linter.pylint.max_locals = 15
|
||||
linter.pylint.max_nested_blocks = 5
|
||||
linter.pyupgrade.keep_runtime_typing = false
|
||||
linter.ruff.parenthesize_tuple_in_subscript = false
|
||||
|
||||
|
|
@ -3434,6 +3437,7 @@ from typing import Union;foo: Union[int, str] = 1
|
|||
linter.pylint.max_statements = 50
|
||||
linter.pylint.max_public_methods = 20
|
||||
linter.pylint.max_locals = 15
|
||||
linter.pylint.max_nested_blocks = 5
|
||||
linter.pyupgrade.keep_runtime_typing = false
|
||||
linter.ruff.parenthesize_tuple_in_subscript = false
|
||||
|
||||
|
|
@ -3814,6 +3818,7 @@ from typing import Union;foo: Union[int, str] = 1
|
|||
linter.pylint.max_statements = 50
|
||||
linter.pylint.max_public_methods = 20
|
||||
linter.pylint.max_locals = 15
|
||||
linter.pylint.max_nested_blocks = 5
|
||||
linter.pyupgrade.keep_runtime_typing = false
|
||||
linter.ruff.parenthesize_tuple_in_subscript = false
|
||||
|
||||
|
|
@ -4142,6 +4147,7 @@ from typing import Union;foo: Union[int, str] = 1
|
|||
linter.pylint.max_statements = 50
|
||||
linter.pylint.max_public_methods = 20
|
||||
linter.pylint.max_locals = 15
|
||||
linter.pylint.max_nested_blocks = 5
|
||||
linter.pyupgrade.keep_runtime_typing = false
|
||||
linter.ruff.parenthesize_tuple_in_subscript = false
|
||||
|
||||
|
|
@ -4470,6 +4476,7 @@ from typing import Union;foo: Union[int, str] = 1
|
|||
linter.pylint.max_statements = 50
|
||||
linter.pylint.max_public_methods = 20
|
||||
linter.pylint.max_locals = 15
|
||||
linter.pylint.max_nested_blocks = 5
|
||||
linter.pyupgrade.keep_runtime_typing = false
|
||||
linter.ruff.parenthesize_tuple_in_subscript = false
|
||||
|
||||
|
|
@ -4755,6 +4762,7 @@ from typing import Union;foo: Union[int, str] = 1
|
|||
linter.pylint.max_statements = 50
|
||||
linter.pylint.max_public_methods = 20
|
||||
linter.pylint.max_locals = 15
|
||||
linter.pylint.max_nested_blocks = 5
|
||||
linter.pyupgrade.keep_runtime_typing = false
|
||||
linter.ruff.parenthesize_tuple_in_subscript = false
|
||||
|
||||
|
|
@ -5093,6 +5101,7 @@ from typing import Union;foo: Union[int, str] = 1
|
|||
linter.pylint.max_statements = 50
|
||||
linter.pylint.max_public_methods = 20
|
||||
linter.pylint.max_locals = 15
|
||||
linter.pylint.max_nested_blocks = 5
|
||||
linter.pyupgrade.keep_runtime_typing = false
|
||||
linter.ruff.parenthesize_tuple_in_subscript = false
|
||||
|
||||
|
|
|
|||
|
|
@ -371,6 +371,7 @@ linter.pylint.max_branches = 12
|
|||
linter.pylint.max_statements = 50
|
||||
linter.pylint.max_public_methods = 20
|
||||
linter.pylint.max_locals = 15
|
||||
linter.pylint.max_nested_blocks = 5
|
||||
linter.pyupgrade.keep_runtime_typing = false
|
||||
linter.ruff.parenthesize_tuple_in_subscript = false
|
||||
|
||||
|
|
|
|||
|
|
@ -96,7 +96,8 @@ impl fmt::Display for Settings {
|
|||
self.max_branches,
|
||||
self.max_statements,
|
||||
self.max_public_methods,
|
||||
self.max_locals
|
||||
self.max_locals,
|
||||
self.max_nested_blocks
|
||||
]
|
||||
}
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Reference in New Issue