|
59 | 59 | DEFAULT_VEHICLE_DIR = ROOT_DIR / "ardupilot_methodic_configurator" / "vehicle_templates" / "ArduCopter" / "empty_4.6.x" |
60 | 60 |
|
61 | 61 |
|
| 62 | +# pylint: disable=too-many-lines |
| 63 | + |
| 64 | + |
62 | 65 | @dataclass(frozen=True) |
63 | 66 | class CaptureTarget: |
64 | 67 | """A screenshot file and capture callback key.""" |
@@ -238,7 +241,7 @@ def download_params( |
238 | 241 | class FakeProjectManager: |
239 | 242 | """Minimal project manager API for opener/creator windows.""" |
240 | 243 |
|
241 | | - def __init__( |
| 244 | + def __init__( # pylint: disable=too-many-arguments, too-many-positional-arguments |
242 | 245 | self, |
243 | 246 | template_dir: Path, |
244 | 247 | base_dir: Path, |
@@ -607,7 +610,7 @@ def _vehicle_opener_highlight_box(window: VehicleProjectOpenerWindow, action: st |
607 | 610 | raise RuntimeError(msg) |
608 | 611 |
|
609 | 612 |
|
610 | | -def _capture_vehicle_opener_with_highlight( |
| 613 | +def _capture_vehicle_opener_with_highlight( # pylint: disable=too-many-arguments, too-many-positional-arguments |
611 | 614 | output_path: Path, |
612 | 615 | delay: float, |
613 | 616 | padding: int, |
@@ -688,7 +691,7 @@ def _find_create_button(window: VehicleProjectCreatorWindow) -> tuple[int, int, |
688 | 691 | return _widget_screen_box(create_button, margin=2) |
689 | 692 |
|
690 | 693 |
|
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 |
692 | 695 | """Resolve a highlight box for a specific vehicle creator screenshot variant.""" |
693 | 696 | result: tuple[int, int, int, int] | None = None |
694 | 697 |
|
@@ -891,7 +894,7 @@ def _capture_motor_test(output_path: Path, delay: float, padding: int, vehicle_d |
891 | 894 | window.on_close() |
892 | 895 |
|
893 | 896 |
|
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 |
895 | 898 | """Capture one screenshot target.""" |
896 | 899 | action = target.action |
897 | 900 | if action == "about": |
|
0 commit comments