diff --git a/.gitea/workflows/backend_run_lint.yaml b/.gitea/workflows/backend_run_lint.yaml index 51de7cc..e3fd418 100644 --- a/.gitea/workflows/backend_run_lint.yaml +++ b/.gitea/workflows/backend_run_lint.yaml @@ -30,5 +30,5 @@ jobs: working-directory: backend - name: Run linter - run: pipenv run pylint src + run: pipenv run pylint src --fail-under=9 working-directory: backend diff --git a/backend/src/structs/trip.py b/backend/src/structs/trip.py index 7042567..c00f591 100644 --- a/backend/src/structs/trip.py +++ b/backend/src/structs/trip.py @@ -25,7 +25,7 @@ class Trip(BaseModel): @classmethod - def from_linked_landmarks(self, landmarks: LinkedLandmarks, cache_client: Client) -> "Trip": + def from_linked_landmarks(cls, landmarks: LinkedLandmarks, cache_client: Client) -> "Trip": """ Initialize a new Trip object and ensure it is stored in the cache. """ diff --git a/backend/src/tests/test_main.py b/backend/src/tests/test_main.py index 1ca03d4..8fe7436 100644 --- a/backend/src/tests/test_main.py +++ b/backend/src/tests/test_main.py @@ -100,7 +100,7 @@ def test_shopping(client, request) : # pylint: disable=redefined-outer-name ) result = response.json() landmarks = load_trip_landmarks(client, result['first_landmark_uuid']) - osm_ids = landmarks_to_osmid(landmarks) + # osm_ids = landmarks_to_osmid(landmarks) # Add details to report log_trip_details(request, landmarks, result['total_time'], duration_minutes)