Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Commit 493503c

Browse files
authored
uv upgrade (#5)
* uv upgrade * huh why wasn't it mad * fix pyright * bump reflex enterprise
1 parent 338b1e3 commit 493503c

9 files changed

Lines changed: 1285 additions & 1114 deletions

File tree

demos/okta/okta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def index():
1515
rx.cond(
1616
OktaAuthState.userinfo,
1717
rx.vstack(
18-
rx.text(f"Welcome, {OktaAuthState.userinfo['name']}!"),
18+
rx.text(f"Welcome, {OktaAuthState.userinfo['name']}!"), # pyright: ignore[reportIndexIssue]
1919
rx.text(OktaAuthState.userinfo.to_string()),
2020
rx.button("Logout", on_click=OktaAuthState.redirect_to_logout),
2121
),

demos/rxconfig.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
import reflex as rx
22

3-
config = rx.Config(
4-
app_name="okta",
5-
tailwind=None,
6-
)
3+
config = rx.Config(app_name="okta")

pyproject.toml

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ license = "LicenseRef-Proprietary"
66
readme = "README.md"
77
requires-python = ">=3.10, <4.0"
88
keywords = ["reflex", "python", "reflex-enterprise"]
9-
authors = [
10-
{name= "Masen Furer", email="masen@reflex.dev"},
11-
]
9+
authors = [{ name = "Masen Furer", email = "masen@reflex.dev" }]
1210
dependencies = [
1311
"reflex-enterprise (>=0.3.0)",
1412
"cryptography",
@@ -35,33 +33,56 @@ bump = true
3533
metadata = false
3634

3735
[dependency-groups]
38-
dev = [
39-
"pre-commit ==4.2.0",
40-
"pyright >=1.1.400",
41-
]
36+
dev = ["pre-commit ==4.2.0", "pyright >=1.1.400"]
4237

4338
[tool.ruff]
4439
target-version = "py310"
4540
output-format = "concise"
4641
lint.isort.split-on-trailing-comma = false
47-
lint.select = ["ANN001","B", "C4", "D", "E", "ERA", "F", "FURB", "I", "N", "PERF", "PGH", "PTH", "RUF", "SIM", "T", "TRY", "W"]
48-
lint.ignore = ["B008", "D205", "E501", "F403", "SIM115", "RUF006", "RUF008", "RUF012", "TRY0"]
42+
lint.select = [
43+
"ANN001",
44+
"B",
45+
"C4",
46+
"D",
47+
"E",
48+
"ERA",
49+
"F",
50+
"FURB",
51+
"I",
52+
"N",
53+
"PERF",
54+
"PGH",
55+
"PTH",
56+
"RUF",
57+
"SIM",
58+
"T",
59+
"TRY",
60+
"W",
61+
]
62+
lint.ignore = [
63+
"B008",
64+
"D205",
65+
"E501",
66+
"F403",
67+
"SIM115",
68+
"RUF006",
69+
"RUF008",
70+
"RUF012",
71+
"TRY0",
72+
]
4973
lint.pydocstyle.convention = "google"
5074

5175

5276
[tool.ruff.lint.per-file-ignores]
5377
"*.pyi" = ["D301", "D415", "D417", "D418", "E742", "N", "PGH"]
54-
"**/alembic/*.py" = ["D","ERA"]
78+
"**/alembic/*.py" = ["D", "ERA"]
5579
"tests/*.py" = ["ANN001", "D"]
5680
"demos/*.py" = ["ANN001", "D", "ERA"]
5781
".flexdown/*.py" = ["ANN001", "D", "F401"]
5882
"__init__.py" = ["ERA"]
5983

6084
[tool.pyright]
61-
reportIncompatibleMethodOverride = false
62-
reportMissingImports = false
63-
reportInconsistentOverload = false
64-
exclude = ["**/alembic/*", "demos/*", "reflex_enterprise/components/mantine/*.pyi"]
85+
6586

6687
[tool.pytest.ini_options]
6788
filterwarnings = "ignore:fields may not start with an underscore:RuntimeWarning"

reflex_okta_auth/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
"""Integrate Okta authentication with Reflex applications."""
22

3+
from reflex_enterprise.components.message_listener import (
4+
WindowMessage,
5+
message_listener,
6+
)
7+
38
from .config import client_id, client_secret
49
from .endpoints import register_auth_endpoints
5-
from .message_listener import WindowMessage, message_listener
610
from .oidc import okta_issuer_endpoint
711
from .state import OktaAuthState
812
from .types import OktaUserInfo

reflex_okta_auth/messageListener.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

reflex_okta_auth/message_listener.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

reflex_okta_auth/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
import httpx
1212
import reflex as rx
1313
from okta_jwt_verifier.jwt_verifier import BaseJWTVerifier
14+
from reflex_enterprise.components.message_listener import WindowMessage
1415

1516
from .config import client_id, client_secret, okta_issuer_uri
1617
from .funcs import POST_MESSAGE_AND_CLOSE_POPUP, WINDOW_OPEN
17-
from .message_listener import WindowMessage
1818
from .oidc import okta_issuer_endpoint
1919
from .types import OktaUserInfo
2020

reflex_okta_auth/ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""UI helpers and components for Okta auth pages and buttons."""
22

33
import reflex as rx
4+
from reflex_enterprise.components.message_listener import message_listener
45

5-
from .message_listener import message_listener
66
from .state import OktaAuthState
77

88

0 commit comments

Comments
 (0)