Skip to content

Commit

Permalink
fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jlloyd-widen committed Sep 3, 2024
1 parent b59b9dc commit 94316ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 6 additions & 1 deletion tap_rest_api_msdk/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from urllib.parse import parse_qs, parse_qsl, urlparse

import requests
from singer_sdk.helpers import types
from singer_sdk.helpers.jsonpath import extract_jsonpath
from singer_sdk.pagination import (
BaseHATEOASPaginator,
Expand Down Expand Up @@ -579,7 +580,11 @@ def parse_response(self, response: requests.Response) -> Iterable[dict]:
"""
yield from extract_jsonpath(self.records_path, input=response.json())

def post_process(self, row: dict, context: Optional[dict] = None) -> dict:
def post_process( # noqa: PLR6301
self,
row: types.Record,
context: Optional[types.Context] = None, # noqa: ARG002
) -> Optional[dict]:
"""As needed, append or transform raw data to match expected structure.
Args:
Expand Down
6 changes: 2 additions & 4 deletions tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Tests standard tap features using the built-in SDK tests library."""

from singer_sdk.testing import get_standard_tap_tests
from singer_sdk.testing import get_tap_test_class
from tap_rest_api_msdk.tap import TapRestApiMsdk

from tests.test_streams import config, json_resp, url_path
Expand All @@ -10,6 +10,4 @@
def test_standard_tap_tests(requests_mock):
"""Run standard tap tests from the SDK."""
requests_mock.get(url_path(), json=json_resp())
tests = get_standard_tap_tests(TapRestApiMsdk, config=config())
for test in tests:
test()
get_tap_test_class(TapRestApiMsdk, config=config())

0 comments on commit 94316ba

Please sign in to comment.