Skip to content

Handling scalars in tests with NEP 51 numpy >=2 #9459

Handling scalars in tests with NEP 51 numpy >=2

Handling scalars in tests with NEP 51 numpy >=2 #9459

Triggered via pull request August 19, 2024 18:01
Status Failure
Total duration 17s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (PLR1730): data_structures/binary_tree/number_of_possible_binary_trees.py#L34
data_structures/binary_tree/number_of_possible_binary_trees.py:34:5: PLR1730 Replace `if` statement with `k = min(k, n - k)`
Ruff (PLR1730): divide_and_conquer/closest_pair_of_points.py#L57
divide_and_conquer/closest_pair_of_points.py:57:13: PLR1730 Replace `if` statement with `min_dis = min(current_dis, min_dis)`
Ruff (PLR1730): divide_and_conquer/closest_pair_of_points.py#L79
divide_and_conquer/closest_pair_of_points.py:79:13: PLR1730 Replace `if` statement with `min_dis = min(current_dis, min_dis)`
Ruff (PLR1730): graphs/kahns_algorithm_long.py#L20
graphs/kahns_algorithm_long.py:20:13: PLR1730 Replace `if` statement with `max` call
Ruff (PLR1730): maths/find_max.py#L23
maths/find_max.py:23:9: PLR1730 Replace `if` statement with `max_num = max(x, max_num)`
Ruff (PLR1730): maths/special_numbers/bell_numbers.py#L64
maths/special_numbers/bell_numbers.py:64:5: PLR1730 Replace `if` statement with `min` call
Ruff (PT023): matrix/tests/test_matrix_operation.py#L34
matrix/tests/test_matrix_operation.py:34:1: PT023 Use `@pytest.mark.mat_ops` over `@pytest.mark.mat_ops()`
Ruff (PT023): matrix/tests/test_matrix_operation.py#L54
matrix/tests/test_matrix_operation.py:54:1: PT023 Use `@pytest.mark.mat_ops` over `@pytest.mark.mat_ops()`
Ruff (PT023): matrix/tests/test_matrix_operation.py#L74
matrix/tests/test_matrix_operation.py:74:1: PT023 Use `@pytest.mark.mat_ops` over `@pytest.mark.mat_ops()`
Ruff (PT023): matrix/tests/test_matrix_operation.py#L96
matrix/tests/test_matrix_operation.py:96:1: PT023 Use `@pytest.mark.mat_ops` over `@pytest.mark.mat_ops()`