Skip to content

Commit 7dc81fa

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5b2d900 commit 7dc81fa

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

marimo/_ast/load.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class LoadResult:
4343
- invalid: Could not be parsed as a marimo notebook (**cannot load**)
4444
- valid: Parsed and valid marimo notebook
4545
"""
46+
4647
status: Literal["empty", "has_errors", "invalid", "valid"] = "empty"
4748
notebook: Optional[NotebookSerialization] = None
4849
contents: Optional[str] = None

tests/_ast/test_load.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@ class TestGetStatus:
340340
("test_get_codes_with_incorrect_args_rets", "valid"),
341341
# unparse cells
342342
("test_generate_filecontents_with_syntax_error", "valid"),
343-
344343
# Empty files
345344
("test_empty", "empty"),
346345
# No cells
@@ -352,16 +351,20 @@ class TestGetStatus:
352351
("test_get_header_comments_invalid", "has_errors"),
353352
("test_get_bad_kwargs", "has_errors"),
354353
# Unparsable
355-
("test_get_codes_non_marimo_python_script", "invalid"), # not marimo
356-
354+
(
355+
"test_get_codes_non_marimo_python_script",
356+
"invalid",
357+
), # not marimo
357358
# Potentially confusing and has_errors
358359
("test_get_alias_import", "has_errors"), # not official format
359360
("test_get_app_kwargs", "has_errors"), # Intentionally bad kwargs
360361
# Empty files can still be opened.
361-
("test_generate_filecontents_empty_with_config", "has_errors"), # no body
362+
(
363+
"test_generate_filecontents_empty_with_config",
364+
"has_errors",
365+
), # no body
362366
("test_generate_filecontents_empty", "has_errors"), # no body
363367
("test_app_with_no_cells", "has_errors"), # No body is an error
364-
365368
# Syntax errors in code
366369
("test_not_parsable", "broken"),
367370
("test_parse_error_in_notebook", "broken"),

0 commit comments

Comments
 (0)