Skip to content

Use TypeError/ValueError instead of AssertionError in simpson_integration #18228

Use TypeError/ValueError instead of AssertionError in simpson_integration

Use TypeError/ValueError instead of AssertionError in simpson_integration #18228

Triggered via pull request June 21, 2026 03:32
Status Failure
Total duration 8s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
ruff
Process completed with exit code 1.
ruff (EM102): maths/numerical_analysis/integration_by_simpson_approx.py#L110
maths/numerical_analysis/integration_by_simpson_approx.py:110:13: EM102 Exception must not use an f-string literal, assign to variable first help: Assign to variable; remove f-string literal
ruff (EM102): maths/numerical_analysis/integration_by_simpson_approx.py#L107
maths/numerical_analysis/integration_by_simpson_approx.py:107:25: EM102 Exception must not use an f-string literal, assign to variable first help: Assign to variable; remove f-string literal
ruff (EM102): maths/numerical_analysis/integration_by_simpson_approx.py#L103
maths/numerical_analysis/integration_by_simpson_approx.py:103:13: EM102 Exception must not use an f-string literal, assign to variable first help: Assign to variable; remove f-string literal
ruff (EM102): maths/numerical_analysis/integration_by_simpson_approx.py#L100
maths/numerical_analysis/integration_by_simpson_approx.py:100:25: EM102 Exception must not use an f-string literal, assign to variable first help: Assign to variable; remove f-string literal
ruff (EM102): maths/numerical_analysis/integration_by_simpson_approx.py#L97
maths/numerical_analysis/integration_by_simpson_approx.py:97:13: EM102 Exception must not use an f-string literal, assign to variable first help: Assign to variable; remove f-string literal