Enable the redefined-builtin pylint rule and fix warnings (#2966)
This commit is contained in:
parent
6f42eba2f4
commit
b0222111f5
|
|
@ -76,12 +76,12 @@ class Help:
|
||||||
max_desc_width = max([help.get_desc_width() for help in help_texts])
|
max_desc_width = max([help.get_desc_width() for help in help_texts])
|
||||||
max_key_width = max([help.get_key_width() for help in help_texts])
|
max_key_width = max([help.get_key_width() for help in help_texts])
|
||||||
|
|
||||||
for help in help_texts:
|
for help_group in help_texts:
|
||||||
help_output += f'{help.group_id.value}\n'
|
help_output += f'{help_group.group_id.value}\n'
|
||||||
divider_len = max_desc_width + max_key_width
|
divider_len = max_desc_width + max_key_width
|
||||||
help_output += '-' * divider_len + '\n'
|
help_output += '-' * divider_len + '\n'
|
||||||
|
|
||||||
for entry in help.group_entries:
|
for entry in help_group.group_entries:
|
||||||
help_output += (
|
help_output += (
|
||||||
entry.description.ljust(max_desc_width, ' ')
|
entry.description.ljust(max_desc_width, ' ')
|
||||||
+ ', '.join(entry.keys) + '\n'
|
+ ', '.join(entry.keys) + '\n'
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,6 @@ disable = [
|
||||||
"fixme",
|
"fixme",
|
||||||
"protected-access",
|
"protected-access",
|
||||||
"raise-missing-from",
|
"raise-missing-from",
|
||||||
"redefined-builtin",
|
|
||||||
"unnecessary-lambda",
|
"unnecessary-lambda",
|
||||||
"unreachable",
|
"unreachable",
|
||||||
"unspecified-encoding",
|
"unspecified-encoding",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue