Skip to content

Commit

Permalink
style: Fix sorted-min-max (FURB192) (#4035)
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix authored Jul 13, 2024
1 parent 8f83c24 commit cb0087e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion man/build_class_graphical.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def get_module_image(module, images):
return image
if basename == module:
return image
return sorted(candidates, key=len)[0]
return min(candidates, key=len)


def generate_page_for_category(
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ ignore = [
"FURB152", # math-constant
"FURB154", # repeated-global
"FURB171", # single-item-membership-test
"FURB192", # sorted-min-max
"I001", # unsorted-imports
"ISC003", # explicit-string-concatenation
"PERF203", # try-except-in-loop
Expand Down

0 comments on commit cb0087e

Please sign in to comment.