Skip to content

Added randomized algorithms #15362

Added randomized algorithms

Added randomized algorithms #15362

Triggered via pull request October 14, 2025 15:44
Status Failure
Total duration 12s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (UP047): randomized_algorithms/reservoir_sampling.py#L7
randomized_algorithms/reservoir_sampling.py:7:5: UP047 Generic function `reservoir_sampling` should use type parameters
Ruff (UP035): randomized_algorithms/reservoir_sampling.py#L2
randomized_algorithms/reservoir_sampling.py:2:1: UP035 `typing.List` is deprecated, use `list` instead
Ruff (UP035): randomized_algorithms/reservoir_sampling.py#L2
randomized_algorithms/reservoir_sampling.py:2:1: UP035 Import from `collections.abc` instead: `Iterator`
Ruff (I001): randomized_algorithms/reservoir_sampling.py#L1
randomized_algorithms/reservoir_sampling.py:1:1: I001 Import block is un-sorted or un-formatted
Ruff (INP001): randomized_algorithms/reservoir_sampling.py#L1
randomized_algorithms/reservoir_sampling.py:1:1: INP001 File `randomized_algorithms/reservoir_sampling.py` is part of an implicit namespace package. Add an `__init__.py`.
Ruff (UP006): randomized_algorithms/randomized_quicksort.py#L5
randomized_algorithms/randomized_quicksort.py:5:45: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): randomized_algorithms/randomized_quicksort.py#L5
randomized_algorithms/randomized_quicksort.py:5:31: UP006 Use `list` instead of `List` for type annotation
Ruff (UP035): randomized_algorithms/randomized_quicksort.py#L2
randomized_algorithms/randomized_quicksort.py:2:1: UP035 `typing.List` is deprecated, use `list` instead
Ruff (INP001): randomized_algorithms/randomized_quicksort.py#L1
randomized_algorithms/randomized_quicksort.py:1:1: INP001 File `randomized_algorithms/randomized_quicksort.py` is part of an implicit namespace package. Add an `__init__.py`.
Ruff (INP001): randomized_algorithms/miller_rabin_primality test.py#L1
randomized_algorithms/miller_rabin_primality test.py:1:1: INP001 File `randomized_algorithms/miller_rabin_primality test.py` is part of an implicit namespace package. Add an `__init__.py`.