Skip to content

Fix ml files and add algorithms #17219

Fix ml files and add algorithms

Fix ml files and add algorithms #17219

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

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
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 (W293): data_structures/trie/trie_autocomplete.py#L269
data_structures/trie/trie_autocomplete.py:269:1: W293 Blank line contains whitespace help: Remove whitespace from blank line
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)?
ruff (W293): data_structures/binary_tree/b_tree.py#L45
data_structures/binary_tree/b_tree.py:45:1: W293 Blank line contains whitespace help: Remove whitespace from blank line