Skip to content

Commit 158da93

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d49500a commit 158da93

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

tap_linkedin_ads/streams/ad_analytics/ad_analytics_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def post_process(self, row: dict, context: dict | None = None) -> dict | None:
3636

3737
if start_date:
3838
row["day"] = datetime.strptime(
39-
f'{start_date.get("year")}-{start_date.get("month")}-{start_date.get("day")}',
39+
f"{start_date.get('year')}-{start_date.get('month')}-{start_date.get('day')}",
4040
"%Y-%m-%d",
4141
).astimezone(UTC)
4242

tap_linkedin_ads/streams/base_stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from singer_sdk import metrics
99
from singer_sdk.authenticators import BearerTokenAuthenticator
1010
from singer_sdk.helpers.jsonpath import extract_jsonpath
11-
from singer_sdk.pagination import BaseAPIPaginator # noqa: TCH002 # noqa: TCH002
11+
from singer_sdk.pagination import BaseAPIPaginator # noqa: TC002 # noqa: TCH002
1212
from singer_sdk.streams import RESTStream
1313

1414
from tap_linkedin_ads.auth import LinkedInAdsOAuthAuthenticator

tap_linkedin_ads/streams/streams.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def get_url(self, context: dict | None) -> str:
500500
if not context:
501501
msg = "Context is required for this stream"
502502
raise ValueError(msg)
503-
return super().get_url(context) + f'/{context["account_id"]}/adCampaigns'
503+
return super().get_url(context) + f"/{context['account_id']}/adCampaigns"
504504

505505
def get_url_params(
506506
self,
@@ -620,7 +620,7 @@ def get_url(self, context: dict | None) -> str:
620620
if not context:
621621
msg = "Context is required for this stream"
622622
raise ValueError(msg)
623-
return super().get_url(context) + f'/{context["account_id"]}/adCampaignGroups'
623+
return super().get_url(context) + f"/{context['account_id']}/adCampaignGroups"
624624

625625
def get_url_params(
626626
self,
@@ -723,7 +723,7 @@ def get_url(self, context: dict | None) -> str:
723723
if not context:
724724
msg = "Context is required for this stream"
725725
raise ValueError(msg)
726-
return super().get_url(context) + f'/{context["account_id"]}/creatives'
726+
return super().get_url(context) + f"/{context['account_id']}/creatives"
727727

728728
def get_url_params(
729729
self,

0 commit comments

Comments
 (0)