Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 27, 2025
1 parent 344df5b commit 1c2b51d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tap_linkedin_ads/streams/ad_analytics/ad_analytics_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def post_process(self, row: dict, context: dict | None = None) -> dict | None:

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

Expand Down
2 changes: 1 addition & 1 deletion tap_linkedin_ads/streams/base_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from singer_sdk import metrics
from singer_sdk.authenticators import BearerTokenAuthenticator
from singer_sdk.helpers.jsonpath import extract_jsonpath
from singer_sdk.pagination import BaseAPIPaginator # noqa: TCH002 # noqa: TCH002
from singer_sdk.pagination import BaseAPIPaginator # noqa: TC002 # noqa: TCH002
from singer_sdk.streams import RESTStream

from tap_linkedin_ads.auth import LinkedInAdsOAuthAuthenticator
Expand Down
6 changes: 3 additions & 3 deletions tap_linkedin_ads/streams/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def get_url(self, context: dict | None) -> str:
if not context:
msg = "Context is required for this stream"
raise ValueError(msg)
return super().get_url(context) + f'/{context["account_id"]}/adCampaigns'
return super().get_url(context) + f"/{context['account_id']}/adCampaigns"

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

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

def get_url_params(
self,
Expand Down

0 comments on commit 1c2b51d

Please sign in to comment.