Skip to content

Commit 831290f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9cae4b5 commit 831290f

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

frontend/src/components/editor/output/MarimoTracebackOutput.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,15 @@ export const replaceTracebackFilenames = (domNode: DOMNode) => {
211211
</span>
212212
);
213213
}
214-
if (info)
215-
{
214+
if (info) {
216215
return (
217216
<div
218217
className="inline-block cursor-pointer text-link hover:underline"
219-
onClick={_ => {
220-
getRequestClient().openFile({path: info.src, lineNumber: info.lineNumber});
218+
onClick={(_) => {
219+
getRequestClient().openFile({
220+
path: info.src,
221+
lineNumber: info.lineNumber,
222+
});
221223
}}
222224
>
223225
<span className="nb">"{info.src}"</span>

frontend/src/core/network/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export interface EditRequests {
142142
request: PreviewDataSourceConnectionRequest,
143143
) => Promise<null>;
144144
validateSQL: (request: ValidateSQLRequest) => Promise<null>;
145-
openFile: (request: { path: string, lineNumber?: number }) => Promise<null>;
145+
openFile: (request: { path: string; lineNumber?: number }) => Promise<null>;
146146
getUsageStats: () => Promise<UsageResponse>;
147147
// Debugger
148148
sendPdb: (request: PdbRequest) => Promise<null>;

frontend/src/utils/traceback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const elementContainsMarimoCellFile = (domNode: Element) => {
3030

3131
export interface TracebackInfo {
3232
src: string;
33-
isCell: boolean
33+
isCell: boolean;
3434
lineNumber: number;
3535
}
3636

marimo/_server/files/os_file_system.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ def open_in_editor(self, path: str, line_number: int | None) -> bool:
328328
# otherwise it silently opens the terminal in the same window that is
329329
# running marimo.
330330
if editor and not _is_terminal_editor(editor):
331-
332331
args = [path]
333332
if line_number is not None:
334333
if editor == "code":

0 commit comments

Comments
 (0)