Enable RET in flake8 and ruff

This commit is contained in:
Alexander Hess 2026-11-30 21:03:23 +01:00
commit 3bd7dd5772
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -149,10 +149,7 @@ def stl( # noqa:C901,PLR0912,PLR0913,PLR0915
if no < 0:
raise ValueError("`no` must be non-negative")
elif no > 0:
robust = True
else:
robust = False
robust = no > 0
# Initialize R only if it is actually used.
# For example, the nox session "ci-tests-fast" does not use it.