A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
verifying fe lints and pre-commmit hooks (#6642)
Francis Shonubi21d18a1826b3
diff --git a/docs/guides/configuration/runtime_configuration.md b/docs/guides/configuration/runtime_configuration.mdindex d16590ba77..989bd30ebb 100644--- a/docs/guides/configuration/runtime_configuration.md+++ b/docs/guides/configuration/runtime_configuration.md@@ -115,7 +115,7 @@ pythonpath = ["project/src"]```This will make it easier to share your library code. For multiple packages,- consider confguring [uv workspaces](https://docs.astral.sh/uv/concepts/projects/workspaces/).+ consider configuring [uv workspaces](https://docs.astral.sh/uv/concepts/projects/workspaces/).See our guide on [notebooks in existingprojects](../package_management/notebooks_in_projects.md) for more details.diff --git a/docs/guides/editor_features/module_autoreloading.md b/docs/guides/editor_features/module_autoreloading.mdindex 5b36df1cf3..f1ad227977 100644--- a/docs/guides/editor_features/module_autoreloading.md+++ b/docs/guides/editor_features/module_autoreloading.md@@ -14,7 +14,7 @@ optionally, automatically run them.Based on static analysis, the reloader only runs cells affected by your edits.The reloader is recursive, meaning that marimo tracks modifications for modules-imported by your notebook's imported modules too. These two featuers make+imported by your notebook's imported modules too. These two features makemarimo's module autoreloader far more advanced than IPython's.Autoreloading comes in two types:diff --git a/examples/third_party/cvxpy/regularization_and_sparsity.py b/examples/third_party/cvxpy/regularization_and_sparsity.pyindex 3ebc555084..e6cf73dbcd 100644--- a/examples/third_party/cvxpy/regularization_and_sparsity.py+++ b/examples/third_party/cvxpy/regularization_and_sparsity.py@@ -156,7 +156,7 @@ def _(mo):The $\ell_1$ norm, when used as a regularizer, encourages solutionsto be _sparse_: to have many zeros and only a few nonzeros.- A sparse regressor (if it is a good model) encodes which featuers+ A sparse regressor (if it is a good model) encodes which featuresare important for making predictions, and which are not: If a componentof $x$ is $0$, then the corresponding feature or measurementmust not be important in making predictions.diff --git a/frontend/src/components/forms/__tests__/form-utils.test.ts b/frontend/src/components/forms/__tests__/form-utils.test.tsindex 2c05b01b90..d872b86f0d 100644--- a/frontend/src/components/forms/__tests__/form-utils.test.ts+++ b/frontend/src/components/forms/__tests__/form-utils.test.ts@@ -189,7 +189,8 @@ describe("getDefaults", () => {const schema = z.object({map: z.map(z.string(), z.number()).default(new Map([["a", 1]])),});- const result = getDefaults(schema) as { map: Map<string, number> };+ const defaults = getDefaults(schema);+ const result = defaults as { map: Map<string, number> };expect(result.map instanceof Map).toBe(true);expect([...result.map.entries()]).toEqual([["a", 1]]);});@@ -198,7 +199,8 @@ describe("getDefaults", () => {const schema = z.object({set: z.set(z.string()).default(new Set(["a", "b"])),});- const result = getDefaults(schema) as { set: Set<string> };+ const defaults = getDefaults(schema);+ const result = defaults as { set: Set<string> };expect(result.set instanceof Set).toBe(true);expect([...result.set]).toEqual(["a", "b"]);});diff --git a/frontend/src/css/app/codemirror-completions.css b/frontend/src/css/app/codemirror-completions.cssindex 1a6b9c5015..7e598761f0 100644--- a/frontend/src/css/app/codemirror-completions.css+++ b/frontend/src/css/app/codemirror-completions.css@@ -247,7 +247,7 @@.cm-completionInfo.cm-completionInfo-right-narrow {/* CodeMirror's default makes the completionInfo overlap with the- * compeletion symbol */+ * completion symbol */left: 100%;}diff --git a/marimo/_ast/parse.py b/marimo/_ast/parse.pyindex 3bd8dda895..e23622e86b 100644--- a/marimo/_ast/parse.py+++ b/marimo/_ast/parse.py@@ -169,9 +169,9 @@ class Extractor:# - Multiline statements need to be accounted for# - Painstaking testing can be found in test/_ast/test_{load, parse}- function_code_reult = self.extract_from_code(node)- violations = function_code_reult.violations- function_code = function_code_reult.unwrap()+ function_code_result = self.extract_from_code(node)+ violations = function_code_result.violations+ function_code = function_code_result.unwrap()lineno_offset, col_offset = extract_offsets_post_colon(function_code,diff --git a/marimo/_cli/development/commands.py b/marimo/_cli/development/commands.pyindex 11af8e26b1..6a93bf4538 100644--- a/marimo/_cli/development/commands.py+++ b/marimo/_cli/development/commands.py@@ -299,7 +299,7 @@ def _generate_server_api_schema() -> dict[str, Any]:component_schemas[name] = converter.convert(cls, processed_classes)processed_classes[cls] = name- schemas_geneartor = SchemaGenerator(+ schemas_generator = SchemaGenerator({"openapi": "3.1.0","info": {"title": "marimo API", "version": __version__},@@ -311,7 +311,7 @@ def _generate_server_api_schema() -> dict[str, Any]:})- schemas = schemas_geneartor.get_schema(routes=build_routes())+ schemas = schemas_generator.get_schema(routes=build_routes())# Find/replace #/$defs with #/components/schemasimport jsondiff --git a/tests/_runtime/test_complete.py b/tests/_runtime/test_complete.pyindex 6953f6da75..087c38c7ba 100644--- a/tests/_runtime/test_complete.py+++ b/tests/_runtime/test_complete.py@@ -189,7 +189,7 @@ def test_parameter_descriptions(obj: Any, runtime_inference: bool):if path.startswith("marimo._save.save."):pytest.skip("Cache functions use overloads to distinguish calls and context managers"- " this can be fixed by splitting docstring on per-oveload basis, but that"+ " this can be fixed by splitting docstring on per-overload basis, but that"" is not yet supported by mkdocstrings for documentation rendering, see"" https://github.com/mkdocstrings/python/issues/135")