From b4cce42a93d6073a5157890f4ed95f7bc024e7bc Mon Sep 17 00:00:00 2001 From: Trishna Saeharaseelan <trishna.saeharaseelan@noc.ac.uk> Date: Wed, 15 Feb 2023 13:46:38 +0000 Subject: [PATCH] fix: lint --- formats/planning_configuration.py | 6 +++++- formats/platform_status.py | 11 +++++++---- project/soar/swagger.json | 2 +- tests/fixtures/schemas.py | 17 ++++++++++++----- tests/fixtures/swagger.json | 2 +- 5 files changed, 26 insertions(+), 12 deletions(-) diff --git a/formats/planning_configuration.py b/formats/planning_configuration.py index 8682d80..acfd47c 100644 --- a/formats/planning_configuration.py +++ b/formats/planning_configuration.py @@ -37,7 +37,11 @@ emergency_schema = { "example": {}, }, }, - "required": ["target_waypoint_latitude", "target_waypoint_longitude", "target_depth"], + "required": [ + "target_waypoint_latitude", + "target_waypoint_longitude", + "target_depth", + ], } diff --git a/formats/platform_status.py b/formats/platform_status.py index b9a6ccf..3593a52 100644 --- a/formats/platform_status.py +++ b/formats/platform_status.py @@ -103,7 +103,7 @@ platform_status_schema = { }, "mission_plan_ID": { "type": "integer", - "description": "Mission plan ID according to local platform-C2 system", + "description": "Mission plan ID according to platform-C2 system", "example": 1, }, "range_to_go": { @@ -138,19 +138,22 @@ platform_status_schema = { }, "health_status": { "type": "boolean", - "description": "Health status where 0 is OK, 1 is platform has an ERROR", + "description": "Health status where 0 is OK, 1 is platform has" + + " an ERROR", "example": False, }, "localisation_north_error": { "type": "number", "format": "float", - "description": "Difference in NORTH between deadreckoning and USBL update.", + "description": "Difference in NORTH between deadreckoning" + + " and USBL update.", "example": 0.000129, }, "localisation_east_error": { "type": "number", "format": "float", - "description": "Difference in EAST between deadreckoning and USBL update.", + "description": "Difference in EAST between deadreckoning" + + "and USBL update.", "example": 0.000129, }, "usbl_fix_seconds_ago": { diff --git a/project/soar/swagger.json b/project/soar/swagger.json index c805daf..46c8777 100644 --- a/project/soar/swagger.json +++ b/project/soar/swagger.json @@ -570,7 +570,7 @@ "type": "string" }, "mission_plan_ID": { - "description": "Mission plan ID according to local platform-C2 system", + "description": "Mission plan ID according to platform-C2 system", "example": 1, "type": "integer" }, diff --git a/tests/fixtures/schemas.py b/tests/fixtures/schemas.py index 60bba4a..9dc8dd2 100644 --- a/tests/fixtures/schemas.py +++ b/tests/fixtures/schemas.py @@ -272,7 +272,11 @@ emergency_schema = { "example": {}, }, }, - "required": ["target_waypoint_latitude", "target_waypoint_longitude", "target_depth"], + "required": [ + "target_waypoint_latitude", + "target_waypoint_longitude", + "target_depth", + ], } @@ -521,7 +525,7 @@ platform_status_schema = { }, "mission_plan_ID": { "type": "integer", - "description": "Mission plan ID according to local platform-C2 system", + "description": "Mission plan ID according to platform-C2 system", "example": 1, }, "range_to_go": { @@ -557,19 +561,22 @@ platform_status_schema = { }, "health_status": { "type": "boolean", - "description": "Health status where 0 is OK, 1 is platform has an ERROR", + "description": "Health status where 0 is OK, 1 is platform" + + " has an ERROR", "example": False, }, "localisation_north_error": { "type": "number", "format": "float", - "description": "Difference in NORTH between deadreckoning and USBL update.", + "description": "Difference in NORTH between deadreckoning" + + " and USBL update.", "example": 0.000129, }, "localisation_east_error": { "type": "number", "format": "float", - "description": "Difference in EAST between deadreckoning and USBL update.", + "description": "Difference in EAST between deadreckoning" + + " and USBL update.", "example": 0.000129, }, "usbl_fix_seconds_ago": { diff --git a/tests/fixtures/swagger.json b/tests/fixtures/swagger.json index 88e5f71..fb2150b 100644 --- a/tests/fixtures/swagger.json +++ b/tests/fixtures/swagger.json @@ -551,7 +551,7 @@ "type": "string" }, "mission_plan_ID": { - "description": "Mission plan ID according to local platform-C2 system", + "description": "Mission plan ID according to platform-C2 system", "example": 1, "type": "integer" }, -- GitLab