Skip to content

Commit 3d5af42

Browse files
chore: pre-commit autoupdate (#71)
<!--pre-commit.ci start--> updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.9.6](astral-sh/ruff-pre-commit@v0.7.2...v0.9.6) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Edgar Ramírez-Mondragón <edgarrm358@gmail.com>
1 parent 945f77c commit 3d5af42

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
- id: trailing-whitespace
1919

2020
- repo: https://github.com/astral-sh/ruff-pre-commit
21-
rev: v0.7.2
21+
rev: v0.9.6
2222
hooks:
2323
- id: ruff
2424
args: [--fix]

tap_salesforce/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,16 +365,15 @@ def is_property_selected( # noqa: C901
365365
if inclusion == "unsupported":
366366
if selected is True:
367367
LOGGER.debug(
368-
"Property '%s' was selected but is not supported. " "Ignoring selected==True input.",
368+
"Property '%s' was selected but is not supported. Ignoring selected==True input.",
369369
":".join(breadcrumb),
370370
)
371371
return False
372372

373373
if inclusion == "automatic":
374374
if selected is False:
375375
LOGGER.debug(
376-
"Property '%s' was deselected while also set "
377-
"for automatic inclusion. Ignoring selected==False input.",
376+
"Property '%s' was deselected while also set for automatic inclusion. Ignoring selected==False input.",
378377
":".join(breadcrumb),
379378
)
380379
return True
@@ -386,7 +385,7 @@ def is_property_selected( # noqa: C901
386385
return selected_by_default
387386

388387
LOGGER.debug(
389-
"Selection metadata omitted for '%s':'%s'. " "Using parent value of selected=%s.",
388+
"Selection metadata omitted for '%s':'%s'. Using parent value of selected=%s.",
390389
stream_name,
391390
breadcrumb,
392391
parent_value,

tap_salesforce/salesforce/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def raise_for_status(resp):
149149
that this error is ephemeral and resolved after retries.
150150
"""
151151
if resp.status_code != 200:
152-
err_msg = f"{resp.status_code} Client Error: {resp.reason} " f"for url: {resp.url}"
152+
err_msg = f"{resp.status_code} Client Error: {resp.reason} for url: {resp.url}"
153153
LOGGER.warning(err_msg)
154154

155155
if resp.status_code == 406 and "CustomNotAcceptable" in resp.reason:

0 commit comments

Comments
 (0)