Skip to content

Commit 163cda8

Browse files
committed
ci: fix pylint issues on scripts/regenerate_app_screenshots_fully_automated.py
1 parent 735fa1b commit 163cda8

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

scripts/regenerate_app_screenshots_fully_automated.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
DEFAULT_VEHICLE_DIR = ROOT_DIR / "ardupilot_methodic_configurator" / "vehicle_templates" / "ArduCopter" / "empty_4.6.x"
6060

6161

62+
# pylint: disable=too-many-lines
63+
64+
6265
@dataclass(frozen=True)
6366
class CaptureTarget:
6467
"""A screenshot file and capture callback key."""
@@ -238,7 +241,7 @@ def download_params(
238241
class FakeProjectManager:
239242
"""Minimal project manager API for opener/creator windows."""
240243

241-
def __init__(
244+
def __init__( # pylint: disable=too-many-arguments, too-many-positional-arguments
242245
self,
243246
template_dir: Path,
244247
base_dir: Path,
@@ -607,7 +610,7 @@ def _vehicle_opener_highlight_box(window: VehicleProjectOpenerWindow, action: st
607610
raise RuntimeError(msg)
608611

609612

610-
def _capture_vehicle_opener_with_highlight(
613+
def _capture_vehicle_opener_with_highlight( # pylint: disable=too-many-arguments, too-many-positional-arguments
611614
output_path: Path,
612615
delay: float,
613616
padding: int,
@@ -688,7 +691,7 @@ def _find_create_button(window: VehicleProjectCreatorWindow) -> tuple[int, int,
688691
return _widget_screen_box(create_button, margin=2)
689692

690693

691-
def _vehicle_creator_highlight_box(window: VehicleProjectCreatorWindow, variant: str) -> tuple[int, int, int, int]:
694+
def _vehicle_creator_highlight_box(window: VehicleProjectCreatorWindow, variant: str) -> tuple[int, int, int, int]: # pylint: disable=too-many-locals
692695
"""Resolve a highlight box for a specific vehicle creator screenshot variant."""
693696
result: tuple[int, int, int, int] | None = None
694697

@@ -891,7 +894,7 @@ def _capture_motor_test(output_path: Path, delay: float, padding: int, vehicle_d
891894
window.on_close()
892895

893896

894-
def capture_target(target: CaptureTarget, output_path: Path, args: argparse.Namespace) -> None:
897+
def capture_target(target: CaptureTarget, output_path: Path, args: argparse.Namespace) -> None: # pylint: disable=too-many-branches
895898
"""Capture one screenshot target."""
896899
action = target.action
897900
if action == "about":

0 commit comments

Comments
 (0)