Skip to content

Fix ml files and add algorithms #17220

Fix ml files and add algorithms

Fix ml files and add algorithms #17220

Triggered via pull request March 6, 2026 18:05
Status Failure
Total duration 12s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
ruff (SIM102): strings/rabin_karp_search.py#L65
strings/rabin_karp_search.py:65:9: SIM102 Use a single `if` statement instead of nested `if` statements help: Combine `if` statements using `and`
ruff (B007): strings/rabin_karp_search.py#L57
strings/rabin_karp_search.py:57:9: B007 Loop control variable `i` not used within loop body help: Rename unused `i` to `_i`
ruff (UP047): searches/jump_search.py#L23
searches/jump_search.py:23:5: UP047 Generic function `jump_search` should use type parameters help: Use type parameters
ruff (RUF059): machine_learning/random_forest_regressor.py#L55
machine_learning/random_forest_regressor.py:55:5: RUF059 Unpacked variable `fig` is never used help: Prefix it with an underscore or any other dummy variable pattern
ruff (UP047): machine_learning/linear_discriminant_analysis.py#L255
machine_learning/linear_discriminant_analysis.py:255:5: UP047 Generic function `valid_input` should use type parameters help: Use type parameters
ruff (RUF059): machine_learning/gradient_boosting_regressor.py#L55
machine_learning/gradient_boosting_regressor.py:55:5: RUF059 Unpacked variable `fig` is never used help: Prefix it with an underscore or any other dummy variable pattern
ruff (F401): machine_learning/gaussian_naive_bayes.py#L8
machine_learning/gaussian_naive_bayes.py:8:17: F401 `numpy` imported but unused help: Remove unused import: `numpy`
ruff (UP035): graphs/check_bipartite.py#L2
graphs/check_bipartite.py:2:1: UP035 Import from `collections.abc` instead: `Hashable` help: Import from `collections.abc`
ruff (RUF037): data_structures/hashing/hash_table_with_linked_list.py#L11
data_structures/hashing/hash_table_with_linked_list.py:11:28: RUF037 Unnecessary empty iterable within a deque call help: Replace with `deque()`
ruff (RUF002): data_structures/binary_tree/b_tree.py#L66
data_structures/binary_tree/b_tree.py:66:49: RUF002 Docstring contains ambiguous `−` (MINUS SIGN). Did you mean `-` (HYPHEN-MINUS)?