Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 96129b6

Browse files
ReSync, fix merges
2 parents fab26ac + e7fdc2d commit 96129b6

File tree

17 files changed

+693
-171
lines changed

17 files changed

+693
-171
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
# This action uses Python Semantic Release v8
6363
- name: Python Semantic Release
6464
id: release
65-
uses: python-semantic-release/python-semantic-release@v9.5.0
65+
uses: python-semantic-release/python-semantic-release@v9.8.0
6666
with:
6767
github_token: ${{ secrets.GITHUB_TOKEN }}
6868

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
exclude: '^.*\.(md|MD)$'
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.3.0
4+
rev: v4.5.0
55
hooks:
66
- id: trailing-whitespace
77
- id: check-added-large-files
@@ -10,7 +10,7 @@ repos:
1010
args: ["--fix=lf"]
1111

1212
- repo: https://github.com/pycqa/isort
13-
rev: 5.12.0
13+
rev: 5.13.2
1414
hooks:
1515
- id: isort
1616
args:
@@ -25,7 +25,7 @@ repos:
2525
]
2626

2727
- repo: https://github.com/myint/autoflake.git
28-
rev: v2.2.1
28+
rev: v2.3.1
2929
hooks:
3030
- id: autoflake
3131
args:
@@ -36,18 +36,18 @@ repos:
3636
]
3737

3838
- repo: https://github.com/ambv/black
39-
rev: 22.6.0
39+
rev: 24.4.0
4040
hooks:
4141
- id: black
4242

4343
- repo: https://github.com/asottile/pyupgrade
44-
rev: v2.37.3
44+
rev: v3.15.2
4545
hooks:
4646
- id: pyupgrade
4747
args: ["--py37-plus", "--keep-runtime-typing"]
4848

4949
- repo: https://github.com/commitizen-tools/commitizen
50-
rev: v2.32.1
50+
rev: v3.22.0
5151
hooks:
5252
- id: commitizen
5353
stages: [commit-msg]

CHANGELOG.md

Lines changed: 515 additions & 0 deletions
Large diffs are not rendered by default.

poetry.lock

Lines changed: 112 additions & 112 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "supabase_auth"
3-
version = "2.4.2"
3+
version = "2.4.3"
44
description = "Python Client Library for Supabase Auth"
55
authors = ["Joel Lee <[email protected]>"]
66
homepage = "https://github.com/supabase-community/auth-py"
@@ -20,17 +20,17 @@ httpx = ">=0.23,<0.28"
2020
pydantic = ">=1.10,<3"
2121

2222
[tool.poetry.dev-dependencies]
23-
pytest = "^8.1.0"
23+
pytest = "^8.2.1"
2424
flake8 = "^5.0.4"
2525
black = "^24.4.2"
2626
isort = "^5.12.0"
2727
pre-commit = "^3.4.0"
2828
pytest-cov = "^5.0.0"
2929
pytest-depends = "^1.0.1"
30-
pytest-asyncio = "^0.23.5"
31-
Faker = "^24.14.1"
30+
pytest-asyncio = "^0.23.7"
31+
Faker = "^25.3.0"
3232
unasync-cli = "^0.0.9"
33-
python-semantic-release = "^9.5.0"
33+
python-semantic-release = "^9.8.0"
3434

3535
[tool.poetry.group.dev.dependencies]
3636
pygithub = ">=1.57,<3.0"

supabase_auth/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
__version__ = "2.4.2"
3+
__version__ = "2.4.3"
44

55
from ._async.gotrue_admin_api import AsyncGoTrueAdminAPI # type: ignore # noqa: F401
66
from ._async.gotrue_client import AsyncGoTrueClient # type: ignore # noqa: F401

supabase_auth/_async/gotrue_admin_api.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ def __init__(
2929
url: str = "",
3030
headers: Dict[str, str] = {},
3131
http_client: Union[AsyncClient, None] = None,
32+
verify: bool = True,
3233
) -> None:
3334
AsyncGoTrueBaseAPI.__init__(
3435
self,
3536
url=url,
3637
headers=headers,
3738
http_client=http_client,
39+
verify=verify,
3840
)
3941
self.mfa = AsyncGoTrueAdminMFAAPI()
4042
self.mfa.list_factors = self._list_factors
@@ -113,9 +115,11 @@ async def list_users(self, page: int = None, per_page: int = None) -> List[User]
113115
"GET",
114116
"admin/users",
115117
query={"page": page, "per_page": per_page},
116-
xform=lambda data: [model_validate(User, user) for user in data["users"]]
117-
if "users" in data
118-
else [],
118+
xform=lambda data: (
119+
[model_validate(User, user) for user in data["users"]]
120+
if "users" in data
121+
else []
122+
),
119123
)
120124

121125
async def get_user_by_id(self, uid: str) -> UserResponse:

supabase_auth/_async/gotrue_base_api.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ def __init__(
1919
url: str,
2020
headers: Dict[str, str],
2121
http_client: Union[AsyncClient, None],
22+
verify: bool = True,
2223
):
2324
self._url = url
2425
self._headers = headers
25-
self._http_client = http_client or AsyncClient(follow_redirects=True)
26+
self._http_client = http_client or AsyncClient(verify=bool(verify), follow_redirects=True)
2627

2728
async def __aenter__(self) -> Self:
2829
return self
@@ -46,8 +47,7 @@ async def _request(
4647
body: Union[Any, None] = None,
4748
no_resolve_json: Literal[False] = False,
4849
xform: Callable[[Any], T],
49-
) -> T:
50-
... # pragma: no cover
50+
) -> T: ... # pragma: no cover
5151

5252
@overload
5353
async def _request(
@@ -62,8 +62,7 @@ async def _request(
6262
body: Union[Any, None] = None,
6363
no_resolve_json: Literal[True],
6464
xform: Callable[[Response], T],
65-
) -> T:
66-
... # pragma: no cover
65+
) -> T: ... # pragma: no cover
6766

6867
@overload
6968
async def _request(
@@ -77,8 +76,7 @@ async def _request(
7776
query: Union[Dict[str, str], None] = None,
7877
body: Union[Any, None] = None,
7978
no_resolve_json: bool = False,
80-
) -> None:
81-
... # pragma: no cover
79+
) -> None: ... # pragma: no cover
8280

8381
async def _request(
8482
self,

supabase_auth/_async/gotrue_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,14 @@ def __init__(
8989
storage: Union[AsyncSupportedStorage, None] = None,
9090
http_client: Union[AsyncClient, None] = None,
9191
flow_type: AuthFlowType = "implicit",
92+
verify: bool = True,
9293
) -> None:
9394
AsyncGoTrueBaseAPI.__init__(
9495
self,
9596
url=url or GOTRUE_URL,
9697
headers=headers or DEFAULT_HEADERS,
9798
http_client=http_client,
99+
verify=verify,
98100
)
99101
self._storage_key = storage_key or STORAGE_KEY
100102
self._auto_refresh_token = auto_refresh_token

supabase_auth/_async/storage.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@
66

77
class AsyncSupportedStorage(ABC):
88
@abstractmethod
9-
async def get_item(self, key: str) -> Optional[str]:
10-
... # pragma: no cover
9+
async def get_item(self, key: str) -> Optional[str]: ... # pragma: no cover
1110

1211
@abstractmethod
13-
async def set_item(self, key: str, value: str) -> None:
14-
... # pragma: no cover
12+
async def set_item(self, key: str, value: str) -> None: ... # pragma: no cover
1513

1614
@abstractmethod
17-
async def remove_item(self, key: str) -> None:
18-
... # pragma: no cover
15+
async def remove_item(self, key: str) -> None: ... # pragma: no cover
1916

2017

2118
class AsyncMemoryStorage(AsyncSupportedStorage):

0 commit comments

Comments
 (0)