Enable the redefined-builtin pylint rule and fix warnings (#2966)

This commit is contained in:
correctmost 2024-11-30 06:53:54 -05:00 committed by GitHub
parent 6f42eba2f4
commit b0222111f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View File

@ -76,12 +76,12 @@ class Help:
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])
for help in help_texts:
help_output += f'{help.group_id.value}\n'
for help_group in help_texts:
help_output += f'{help_group.group_id.value}\n'
divider_len = max_desc_width + max_key_width
help_output += '-' * divider_len + '\n'
for entry in help.group_entries:
for entry in help_group.group_entries:
help_output += (
entry.description.ljust(max_desc_width, ' ')
+ ', '.join(entry.keys) + '\n'

View File

@ -165,7 +165,6 @@ disable = [
"fixme",
"protected-access",
"raise-missing-from",
"redefined-builtin",
"unnecessary-lambda",
"unreachable",
"unspecified-encoding",