Skip to content

Commit 5e8598b

Browse files
chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.15.0 (#1555)
* chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.15.0 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 20e607b commit 5e8598b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
- id: pretty-format-json
1818
args: [--no-sort-keys, --autofix, --no-ensure-ascii]
1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: v0.14.14
20+
rev: v0.15.0
2121
hooks:
2222
- id: ruff-check
2323
args: [--fix, --exit-non-zero-on-fix]

social_core/backends/etsy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class EtsyOAuth2(BaseOAuth2PKCE):
2727

2828
def user_data(self, access_token: str, *args, **kwargs) -> dict[str, Any] | None:
2929
client_id, _ = self.get_key_and_secret()
30-
user_id = access_token.split(".")[0]
30+
user_id = access_token.split(".", maxsplit=1)[0]
3131
headers = {"Authorization": f"Bearer {access_token}", "x-api-key": client_id}
3232
return self.get_json(
3333
url=f"https://openapi.etsy.com/v3/application/users/{user_id}",

0 commit comments

Comments
 (0)