Add PyLint ruff checks

This commit is contained in:
Julian Stirling 2025-09-18 14:58:00 +01:00
parent 65f172d650
commit 528c6a2b63
4 changed files with 20 additions and 5 deletions

View file

@ -706,7 +706,10 @@ class AutofocusThing(lt.Thing):
sharpness=cam.grab_jpeg_size(stream_name="lores"),
)
def check_stack_result(
# Silence too many returns in this situation as refactoring to reduce returns is
# unlikely to improve readability. This function is basically a complex switch
# statement, having an explicit return after each option is clear.
def check_stack_result( # noqa: PLR0911
self, captures: list[CaptureInfo]
) -> tuple[Literal["success", "continue", "restart"], int]:
"""Check if the sharpest image in a list of captures is central enough.