Skip to content

Commit 68ffeb7

Browse files
committed
hatch fmt
1 parent 3201fe4 commit 68ffeb7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ lint.extend-ignore = [
162162
"PLR2004", # Magic value used in comparison
163163
"SIM115", # Use context handler for opening files
164164
"SLF001", # Private member accessed
165-
"DOC201", # 'Returns:' section in docstring is missing
165+
"DOC201", # 'Returns' section in docstring is missing
166+
"DOC501", # `Error` section in docstring is missing
166167
]
167168
lint.preview = true
168169

src/reactpy_router/routers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ def router(
6969

7070
if match:
7171
if not location or not location.path:
72-
raise RuntimeError(
72+
msg = (
7373
"ReactPy-Router was unable to determine the current URL location.\n"
7474
"Are you sure you are running this within the a ConnectionContext?"
7575
)
76+
raise RuntimeError(msg)
7677

7778
def on_history_previous(event: dict[str, Any]) -> None:
7879
"""Callback function used within the JavaScript `History` component that signifies

0 commit comments

Comments
 (0)