Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBaecker committed Nov 27, 2024
1 parent 487d4d8 commit 8264377
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 21 deletions.
2 changes: 1 addition & 1 deletion field_friend/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from .system import System

__all__ = [
'System',
'interface',
'log_configuration',
'System',
]
2 changes: 1 addition & 1 deletion field_friend/automations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
'KpiProvider',
'Path',
'PathProvider',
'Plant',
'PlantLocator',
'PlantProvider',
'Plant',
'Puncher',
'Row',
'RowSupportPoint',
Expand Down
8 changes: 4 additions & 4 deletions field_friend/automations/implements/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
from .weeding_screw import WeedingScrew

__all__ = [
'ExternalMower',
'Implement',
'WeedingImplement',
'ImplementException',
'Recorder',
'WeedingScrew',
'Tornado',
'ExternalMower',
'ImplementException',
'WeedingImplement',
'WeedingScrew',
]
8 changes: 4 additions & 4 deletions field_friend/automations/navigation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
from .straight_line_navigation import StraightLineNavigation

__all__ = [
'CrossglideDemoNavigation',
'FieldNavigation',
'FollowCropsNavigation',
'Navigation',
'WorkflowException',
'StraightLineNavigation',
'FollowCropsNavigation',
'FieldNavigation',
'CrossglideDemoNavigation',
'WorkflowException',
]
9 changes: 5 additions & 4 deletions field_friend/automations/navigation/field_navigation.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
from .straight_line_navigation import StraightLineNavigation
from ..implements.implement import Implement
from ..implements.weeding_implement import WeedingImplement
from ..field import Field, Row
from enum import Enum, auto
from random import randint
from typing import TYPE_CHECKING, Any
Expand All @@ -11,6 +7,11 @@
from nicegui import ui
from rosys.geometry import Point, Pose

from ..field import Field, Row
from ..implements.implement import Implement
from ..implements.weeding_implement import WeedingImplement
from .straight_line_navigation import StraightLineNavigation

if TYPE_CHECKING:
from ...system import System

Expand Down
6 changes: 3 additions & 3 deletions field_friend/interface/components/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

__all__ = [
'CameraCard',
'create_development_ui',
'create_header',
'create_status_drawer',
'LeafletMap',
'Monitoring',
'Operation',
'RobotScene',
'create_development_ui',
'create_header',
'create_status_drawer',
]
5 changes: 4 additions & 1 deletion field_friend/interface/components/field_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
from collections.abc import Callable
from typing import TYPE_CHECKING
from uuid import uuid4

import rosys
from nicegui import ui
from nicegui.elements.leaflet_layers import Marker

from field_friend.automations.field import Field
from field_friend.interface.components.monitoring import CameraPosition
from field_friend.localization import GeoPoint
from nicegui.elements.leaflet_layers import Marker

if TYPE_CHECKING:
from ...system import System

Expand Down
2 changes: 2 additions & 0 deletions field_friend/interface/components/operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import logging
from typing import TYPE_CHECKING

from nicegui import app, events, ui

from .field_creator import FieldCreator
from .key_controls import KeyControls
from .support_point_dialog import SupportPointDialog
Expand Down
4 changes: 2 additions & 2 deletions field_friend/vision/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
from .camera_configurator import CameraConfigurator

__all__ = [
'DOT_DISTANCE',
'CalibratableUsbCamera',
'CalibratableUsbCameraProvider',
'CameraConfigurator',
'configurations',
'Contour',
'Dot',
'Network',
'DOT_DISTANCE',
'configurations',
]
3 changes: 2 additions & 1 deletion tests/test_navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
import rosys
from conftest import ROBOT_GEO_START_POSITION
from rosys.testing import forward

from field_friend import System
from field_friend.automations import Field
from field_friend.automations.implements import Implement, Recorder, WeedingImplement, Tornado
from field_friend.automations.implements import Implement, Recorder, Tornado, WeedingImplement
from field_friend.automations.navigation import StraightLineNavigation
from field_friend.automations.navigation.field_navigation import State as FieldNavigationState
from field_friend.localization import GnssSimulation
Expand Down

0 comments on commit 8264377

Please sign in to comment.