Skip to content

Add aliquot_sum.py new function and doctests #13295

Add aliquot_sum.py new function and doctests

Add aliquot_sum.py new function and doctests #13295

Triggered via pull request June 22, 2025 03:33
Status Failure
Total duration 13s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (PLC0415): data_structures/binary_tree/treap.py#L19
data_structures/binary_tree/treap.py:19:9: PLC0415 `import` should be at the top-level of a file
Ruff (PLC0415): data_structures/binary_tree/red_black_tree.py#L488
data_structures/binary_tree/red_black_tree.py:488:9: PLC0415 `import` should be at the top-level of a file
Ruff (PLW1641): data_structures/binary_tree/red_black_tree.py#L6
data_structures/binary_tree/red_black_tree.py:6:7: PLW1641 Object does not implement `__hash__` method
Ruff (UP046): data_structures/binary_tree/non_recursive_segment_tree.py#L47
data_structures/binary_tree/non_recursive_segment_tree.py:47:19: UP046 Generic class `SegmentTree` uses `Generic` subclass instead of type parameters
Ruff (PLC0415): data_structures/binary_tree/diff_views_of_binary_tree.py#L176
data_structures/binary_tree/diff_views_of_binary_tree.py:176:5: PLC0415 `import` should be at the top-level of a file
Ruff (PLC0415): data_structures/binary_tree/binary_search_tree.py#L118
data_structures/binary_tree/binary_search_tree.py:118:9: PLC0415 `import` should be at the top-level of a file
Ruff (SIM108): data_structures/binary_tree/avl_tree.py#L116
data_structures/binary_tree/avl_tree.py:116:13: SIM108 Use ternary operator `node = rl_rotation(node) if data < node.right.data else left_rotation(node)` instead of `if`-`else`-block
Ruff (SIM108): data_structures/binary_tree/avl_tree.py#L109
data_structures/binary_tree/avl_tree.py:109:13: SIM108 Use ternary operator `node = right_rotation(node) if data < node.left.data else lr_rotation(node)` instead of `if`-`else`-block
Ruff (F401): data_structures/binary_tree/avl_tree.py#L9
data_structures/binary_tree/avl_tree.py:9:8: F401 `math` imported but unused
Ruff (I001): data_structures/binary_tree/avl_tree.py#L7
data_structures/binary_tree/avl_tree.py:7:1: I001 Import block is un-sorted or un-formatted