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

Commit 156e511

Browse files
authored
Update hatch to 1.11.0 (#22)
1 parent a25f29b commit 156e511

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
python-version: "3.12"
3030

3131
- name: Install hatch
32-
run: pip install hatch==1.9.3
32+
run: pip install hatch==1.11.0
3333

3434
- name: Build
3535
run: hatch build

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
python-version: ${{ matrix.python-version }}
3333

3434
- name: Install hatch
35-
run: pip install hatch==1.9.3
35+
run: pip install hatch==1.11.0
3636

3737
- name: Lint
3838
run: make lint

examples/django-webhook/manage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
"""Django's command-line utility for administrative tasks."""
3+
34
import os
45
import sys
56

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ strict = true
7979
target-version = "py38"
8080
line-length = 88
8181
extend-exclude = ["src/userhub_sdk/types/_str_enum.py"]
82+
unsafe-fixes = true
8283

8384
[tool.ruff.lint]
8485
ignore = [
@@ -98,5 +99,5 @@ ignore = [
9899
"examples/http-server-webhook/main.py" = ["N802"]
99100
"tests/*" = ["S101", "S106"]
100101

101-
[tool.ruff.isort]
102+
[tool.ruff.lint.isort]
102103
combine-as-imports = true

src/userhub_sdk/adminv1/_connection.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ class Connection:
5757
#: The builtin email configuration data.
5858
builtin_email: Optional[BuiltinEmailConnection] = None
5959
#: The Google Cloud Identity Platform (Firebase Auth) connection.
60-
google_cloud_identity_platform: Optional[
61-
GoogleCloudIdentityPlatformConnection
62-
] = None
60+
google_cloud_identity_platform: Optional[GoogleCloudIdentityPlatformConnection] = (
61+
None
62+
)
6363
#: The Postmark configuration data.
6464
postmark: Optional[PostmarkConnection] = None
6565
#: The Stripe billing configuration data.
@@ -111,10 +111,10 @@ def __json_encode__(self) -> Dict[str, Any]:
111111
)
112112

113113
if self.google_cloud_identity_platform is not None:
114-
data[
115-
"googleCloudIdentityPlatform"
116-
] = GoogleCloudIdentityPlatformConnection.__json_encode__(
117-
self.google_cloud_identity_platform
114+
data["googleCloudIdentityPlatform"] = (
115+
GoogleCloudIdentityPlatformConnection.__json_encode__(
116+
self.google_cloud_identity_platform
117+
)
118118
)
119119

120120
if self.postmark is not None:
@@ -176,10 +176,10 @@ def __json_decode__(data: Dict[str, Any]) -> "Connection":
176176
)
177177

178178
if data.get("googleCloudIdentityPlatform") is not None:
179-
kwargs[
180-
"google_cloud_identity_platform"
181-
] = GoogleCloudIdentityPlatformConnection.__json_decode__(
182-
data["googleCloudIdentityPlatform"]
179+
kwargs["google_cloud_identity_platform"] = (
180+
GoogleCloudIdentityPlatformConnection.__json_decode__(
181+
data["googleCloudIdentityPlatform"]
182+
)
183183
)
184184

185185
if data.get("postmark") is not None:

0 commit comments

Comments
 (0)