Skip to content

Add Splay Tree implementation #13760 [hacktoberfest] #16416

Add Splay Tree implementation #13760 [hacktoberfest]

Add Splay Tree implementation #13760 [hacktoberfest] #16416

Triggered via pull request November 14, 2025 11:57
Status Failure
Total duration 8s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (UP006): dsa_programs/bellman_ford.py#L11
dsa_programs/bellman_ford.py:11:6: UP006 Use `dict` instead of `Dict` for type annotation
Ruff (UP006): dsa_programs/bellman_ford.py#L6
dsa_programs/bellman_ford.py:6:8: UP006 Use `tuple` instead of `Tuple` for type annotation
Ruff (UP035): dsa_programs/bellman_ford.py#L3
dsa_programs/bellman_ford.py:3:1: UP035 `typing.Tuple` is deprecated, use `tuple` instead
Ruff (UP035): dsa_programs/bellman_ford.py#L3
dsa_programs/bellman_ford.py:3:1: UP035 `typing.Set` is deprecated, use `set` instead
Ruff (UP035): dsa_programs/bellman_ford.py#L3
dsa_programs/bellman_ford.py:3:1: UP035 `typing.List` is deprecated, use `list` instead
Ruff (UP035): dsa_programs/bellman_ford.py#L3
dsa_programs/bellman_ford.py:3:1: UP035 `typing.Dict` is deprecated, use `dict` instead
Ruff (UP035): dsa_programs/bellman_ford.py#L3
dsa_programs/bellman_ford.py:3:1: UP035 Import from `collections.abc` instead: `Iterable`
Ruff (I001): dsa_programs/__init__.py#L3
dsa_programs/__init__.py:3:1: I001 Import block is un-sorted or un-formatted
Ruff (SIM108): data_structures/binary_tree/splay_tree.py#L88
data_structures/binary_tree/splay_tree.py:88:13: SIM108 Use ternary operator `z = z.left if key < z.key else z.right` instead of `if`-`else`-block
Ruff (PLR5501): data_structures/binary_tree/splay_tree.py#L67
data_structures/binary_tree/splay_tree.py:67:13: PLR5501 Use `elif` instead of `else` then `if`, to reduce indentation