Skip to content

Commit

Permalink
chore: pre-commit autoupdate (#71)
Browse files Browse the repository at this point in the history
<!--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 <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and edgarrmondragon authored Feb 11, 2025
1 parent 945f77c commit 3d5af42
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.2
rev: v0.9.6
hooks:
- id: ruff
args: [--fix]
Expand Down
7 changes: 3 additions & 4 deletions tap_salesforce/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,16 +365,15 @@ def is_property_selected( # noqa: C901
if inclusion == "unsupported":
if selected is True:
LOGGER.debug(
"Property '%s' was selected but is not supported. " "Ignoring selected==True input.",
"Property '%s' was selected but is not supported. Ignoring selected==True input.",
":".join(breadcrumb),
)
return False

if inclusion == "automatic":
if selected is False:
LOGGER.debug(
"Property '%s' was deselected while also set "
"for automatic inclusion. Ignoring selected==False input.",
"Property '%s' was deselected while also set for automatic inclusion. Ignoring selected==False input.",
":".join(breadcrumb),
)
return True
Expand All @@ -386,7 +385,7 @@ def is_property_selected( # noqa: C901
return selected_by_default

LOGGER.debug(
"Selection metadata omitted for '%s':'%s'. " "Using parent value of selected=%s.",
"Selection metadata omitted for '%s':'%s'. Using parent value of selected=%s.",
stream_name,
breadcrumb,
parent_value,
Expand Down
2 changes: 1 addition & 1 deletion tap_salesforce/salesforce/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def raise_for_status(resp):
that this error is ephemeral and resolved after retries.
"""
if resp.status_code != 200:
err_msg = f"{resp.status_code} Client Error: {resp.reason} " f"for url: {resp.url}"
err_msg = f"{resp.status_code} Client Error: {resp.reason} for url: {resp.url}"
LOGGER.warning(err_msg)

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

0 comments on commit 3d5af42

Please sign in to comment.