Skip to content

Adding-Classification-On-Decision-Tree #17532

Adding-Classification-On-Decision-Tree

Adding-Classification-On-Decision-Tree #17532

Triggered via pull request March 29, 2026 04:48
Status Failure
Total duration 15s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
ruff (SIM108): machine_learning/decision_tree.py#L160
machine_learning/decision_tree.py:160:9: SIM108 Use ternary operator `best_score = float("inf") if self.task == "regression" else -float("inf")` instead of `if`-`else`-block help: Replace `if`-`else`-block with `best_score = float("inf") if self.task == "regression" else -float("inf")`
ruff (W293): machine_learning/decision_tree.py#L153
machine_learning/decision_tree.py:153:1: W293 Blank line contains whitespace help: Remove whitespace from blank line
ruff (W293): machine_learning/decision_tree.py#L80
machine_learning/decision_tree.py:80:1: W293 Blank line contains whitespace help: Remove whitespace from blank line
ruff (E501): machine_learning/decision_tree.py#L79
machine_learning/decision_tree.py:79:89: E501 Line too long (93 > 88)
ruff (RUF059): machine_learning/decision_tree.py#L70
machine_learning/decision_tree.py:70:9: RUF059 Unpacked variable `classes` is never used help: Prefix it with an underscore or any other dummy variable pattern
ruff (W293): machine_learning/decision_tree.py#L67
machine_learning/decision_tree.py:67:1: W293 Blank line contains whitespace help: Remove whitespace from blank line
ruff (RUF059): machine_learning/decision_tree.py#L57
machine_learning/decision_tree.py:57:9: RUF059 Unpacked variable `classes` is never used help: Prefix it with an underscore or any other dummy variable pattern
ruff (W293): machine_learning/decision_tree.py#L54
machine_learning/decision_tree.py:54:1: W293 Blank line contains whitespace help: Remove whitespace from blank line
ruff (W293): machine_learning/decision_tree.py#L21
machine_learning/decision_tree.py:21:1: W293 Blank line contains whitespace help: Remove whitespace from blank line
ruff (I001): machine_learning/decision_tree.py#L7
machine_learning/decision_tree.py:7:1: I001 Import block is un-sorted or un-formatted help: Organize imports