Skip to content

feat: Add Kelly Criterion and Sharpe Ratio financial algorithms #17224

feat: Add Kelly Criterion and Sharpe Ratio financial algorithms

feat: Add Kelly Criterion and Sharpe Ratio financial algorithms #17224

Triggered via pull request March 7, 2026 13:35
Status Failure
Total duration 13s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors
ruff
Process completed with exit code 1.
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 (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 (E501): financial/sharpe_ratio.py#L99
financial/sharpe_ratio.py:99:89: E501 Line too long (91 > 88)
ruff (RUF002): financial/sharpe_ratio.py#L32
financial/sharpe_ratio.py:32:5: RUF002 Docstring contains ambiguous `σ` (GREEK SMALL LETTER SIGMA). Did you mean `o` (LATIN SMALL LETTER O)?
ruff (RUF002): financial/sharpe_ratio.py#L26
financial/sharpe_ratio.py:26:20: RUF002 Docstring contains ambiguous `σ` (GREEK SMALL LETTER SIGMA). Did you mean `o` (LATIN SMALL LETTER O)?
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()`