Add input validation to cyclic_sort for duplicates and out-of-range v… #18362
Annotations
7 errors
|
ruff
Process completed with exit code 1.
|
|
ruff (W293):
sorts/cyclic_sort.py#L53
sorts/cyclic_sort.py:53:1: W293 Blank line contains whitespace
help: Remove whitespace from blank line
|
|
ruff (W291):
sorts/cyclic_sort.py#L52
sorts/cyclic_sort.py:52:82: W291 Trailing whitespace
help: Remove trailing whitespace
|
|
ruff (EM102):
sorts/cyclic_sort.py#L52
sorts/cyclic_sort.py:52:30: EM102 Exception must not use an f-string literal, assign to variable first
help: Assign to variable; remove f-string literal
|
|
ruff (W293):
sorts/cyclic_sort.py#L49
sorts/cyclic_sort.py:49:1: W293 Blank line contains whitespace
help: Remove whitespace from blank line
|
|
ruff (EM102):
sorts/cyclic_sort.py#L48
sorts/cyclic_sort.py:48:30: EM102 Exception must not use an f-string literal, assign to variable first
help: Assign to variable; remove f-string literal
|
|
ruff (W291):
sorts/cyclic_sort.py#L45
sorts/cyclic_sort.py:45:18: W291 Trailing whitespace
help: Remove trailing whitespace
|