mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-22 23:23:30 -06:00
pylint: Skip use-dict-literal/use-list-literal
Pylint 2.10 introduced new checkers: > Emitted when using dict() to create an empty dictionary instead of the literal {}. The literal is faster as it avoids an additional function call. > Emitted when using list() to create an empty list instead of the literal []. The literal is faster as it avoids an additional function call. Too many unessential changes. Fixes: https://pagure.io/freeipa/issue/9117 Signed-off-by: Stanislav Levin <slev@altlinux.org> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
parent
14e940990d
commit
af8adbb459
2
pylintrc
2
pylintrc
@ -110,6 +110,8 @@ disable=
|
||||
consider-using-min-builtin, # pylint 2.8.0, can be more readable
|
||||
redundant-u-string-prefix, # pylint 2.10.0, too many unessential changes
|
||||
consider-using-f-string, # pylint 2.11.0, format can be more readable
|
||||
use-dict-literal, # pylint 2.10.0 dict vs {}
|
||||
use-list-literal, # pylint 2.10.0 list() vs []
|
||||
|
||||
[REPORTS]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user