Use TypeError/ValueError instead of AssertionError in simpson_integration #18227
Annotations
7 errors
|
ruff
Process completed with exit code 1.
|
|
ruff (EM102):
maths/numerical_analysis/integration_by_simpson_approx.py#L108
maths/numerical_analysis/integration_by_simpson_approx.py:108: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#L105
maths/numerical_analysis/integration_by_simpson_approx.py:105: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#L101
maths/numerical_analysis/integration_by_simpson_approx.py:101: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#L98
maths/numerical_analysis/integration_by_simpson_approx.py:98: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#L95
maths/numerical_analysis/integration_by_simpson_approx.py:95:13: EM102 Exception must not use an f-string literal, assign to variable first
help: Assign to variable; remove f-string literal
|
|
ruff (E501):
maths/numerical_analysis/integration_by_simpson_approx.py#L39
maths/numerical_analysis/integration_by_simpson_approx.py:39:89: E501 Line too long (93 > 88)
|