Skip to content

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.

Add codespell fixes (not picked up by typos?) (#10265)

Yaroslav Halchenkodabaff811d27
diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml
index 6f23790a73..c412d40700 100644
--- a/.github/workflows/cla.yml
+++ b/.github/workflows/cla.yml
@@ -44,7 +44,7 @@ jobs:
branch: "main"
allowlist: bot*,copilot
- # the followings are the optional inputs - If the optional inputs are not given, then default values will be taken
+ # the following are the optional inputs - If the optional inputs are not given, then default values will be taken
remote-organization-name: marimo-team
remote-repository-name: cla-signers
lock-pullrequest-aftermerge: false #- if you don't want this bot to automatically lock the pull request after merging (default - true)
diff --git a/examples/sql/connect_to_postgres.py b/examples/sql/connect_to_postgres.py
index 1a23046ba0..8eecb734a0 100644
--- a/examples/sql/connect_to_postgres.py
+++ b/examples/sql/connect_to_postgres.py
@@ -136,7 +136,7 @@ def _(mo):
mo.md(r"""
## Copy data from Postgres to duckdb
- To prevent duckdb from continuously re-reading tables from PostgresSQL, you can copy the PostgresSQL databases into DuckDB. Note that this will consume your system's RAM.
+ To prevent duckdb from continuously re-reading tables from PostgreSQL, you can copy the PostgreSQL databases into DuckDB. Note that this will consume your system's RAM.
""")
return
@@ -156,9 +156,9 @@ def _(mo):
@app.cell(hide_code=True)
def _(mo):
mo.md(r"""
- ## Execute queries directly in PostgresSQL
+ ## Execute queries directly in PostgreSQL
- Run queries directly in PostgresSQL using duckdb's `postgres_query` function. In some cases this may be faster than executing queries in duckdb.
+ Run queries directly in PostgreSQL using duckdb's `postgres_query` function. In some cases this may be faster than executing queries in duckdb.
""")
return
diff --git a/frontend/src/components/editor/RecoveryButton.tsx b/frontend/src/components/editor/RecoveryButton.tsx
index b0a461c1ca..e4502da75f 100644
--- a/frontend/src/components/editor/RecoveryButton.tsx
+++ b/frontend/src/components/editor/RecoveryButton.tsx
@@ -36,7 +36,7 @@ const RecoveryModal = (props: {
const getNotebookJSON = useEvent(() => {
const notebook = getNotebook();
const cells = notebookCells(notebook);
- const notbook: Notebook["NotebookV1"] = {
+ const notebookV1: Notebook["NotebookV1"] = {
version: "1",
metadata: {
marimo_version: getMarimoVersion(),
@@ -54,7 +54,7 @@ const RecoveryModal = (props: {
};
}),
};
- return JSON.stringify(notbook, null, 2);
+ return JSON.stringify(notebookV1, null, 2);
});
// NB: we use markdown class to have sane styling for list, paragraph
diff --git a/marimo/_ai/_pydantic_ai_utils.py b/marimo/_ai/_pydantic_ai_utils.py
index 314207c62d..3856868742 100644
--- a/marimo/_ai/_pydantic_ai_utils.py
+++ b/marimo/_ai/_pydantic_ai_utils.py
@@ -98,7 +98,7 @@ def convert_to_pydantic_messages(
part_processor: Callable[[UIMessagePart], UIMessagePart] | None = None,
) -> list[UIMessage]:
"""
- The frontend SDK tends to generate messages with a messageId eventhough it's not valid.
+ The frontend SDK tends to generate messages with a messageId even though it's not valid.
Remove them to prevent validation errors.
If a part processor is provided, it will be applied to the parts of the message.
"""
diff --git a/marimo/_output/formatters/formatter_factory.py b/marimo/_output/formatters/formatter_factory.py
index 5bd4ea6d7c..abdfb27553 100644
--- a/marimo/_output/formatters/formatter_factory.py
+++ b/marimo/_output/formatters/formatter_factory.py
@@ -60,5 +60,5 @@ class FormatterFactory(abc.ABC):
self.apply_theme(theme)
except Exception as e:
LOGGER.error(
- f"Error applying theme {theme} fro {self.package_name()}: {e}"
+ f"Error applying theme {theme} for {self.package_name()}: {e}"
)
diff --git a/marimo/_save/hash.py b/marimo/_save/hash.py
index 8dd98bce58..cf433fc555 100644
--- a/marimo/_save/hash.py
+++ b/marimo/_save/hash.py
@@ -1163,7 +1163,7 @@ def content_cache_attempt_from_base(
# refine to values present
refs = scoped_refs & previous_block.visitor.refs
- # Required refs are made explicit incase the examined block does not
+ # Required refs are made explicit in case the examined block does not
# specify them e.g.
# @cache
# def foo(x):
diff --git a/marimo/_server/asgi.py b/marimo/_server/asgi.py
index 6c0ddaf39c..3ca5216fee 100644
--- a/marimo/_server/asgi.py
+++ b/marimo/_server/asgi.py
@@ -495,7 +495,7 @@ def create_asgi_app(
"for running multiple notebooks with create_asgi_app()"
)
- # We call the entrypoint `root` instead of `filename` incase we want to
+ # We call the entrypoint `root` instead of `filename` in case we want to
# support directories or code in the future
class Builder(ASGIAppBuilder):
def __init__(self) -> None:
diff --git a/marimo/_smoke_tests/app_fn.py b/marimo/_smoke_tests/app_fn.py
index c219fe9521..13df35ee0b 100644
--- a/marimo/_smoke_tests/app_fn.py
+++ b/marimo/_smoke_tests/app_fn.py
@@ -43,7 +43,7 @@ def subtraction(a: "int", b: "int") -> "int":
@app.function
-# Comments inbetween
+# Comments in between
def multiply(a, b) -> int:
return a * b
diff --git a/marimo/_smoke_tests/media.py b/marimo/_smoke_tests/media.py
index 902d0f375b..b8385340b5 100644
--- a/marimo/_smoke_tests/media.py
+++ b/marimo/_smoke_tests/media.py
@@ -33,7 +33,7 @@ def _(mic, mo):
@app.cell
def _(mo):
- # Note, chrome does not support cross-origin download, so this wont auto download until we proxy the download through the backend
+ # Note, chrome does not support cross-origin download, so this won't auto download until we proxy the download through the backend
_src = "https://samplelib.com/lib/preview/mp3/sample-3s.mp3"
mo.hstack(
[
@@ -58,7 +58,7 @@ def _(BytesIO, base64, mo, requests):
mo.vstack(
[
mo.image(src=_src, rounded=True, height=100),
- # Note, chrome does not support cross-origin download, so this wont auto download until we proxy the download through the backend
+ # Note, chrome does not support cross-origin download, so this won't auto download until we proxy the download through the backend
mo.download(data=_src, label="Download via URL"),
mo.image(src=image_data, rounded=True, height=100),
mo.download(
diff --git a/tests/_runtime/reload/test_module_watcher.py b/tests/_runtime/reload/test_module_watcher.py
index 0a7cb7ba61..450068032a 100644
--- a/tests/_runtime/reload/test_module_watcher.py
+++ b/tests/_runtime/reload/test_module_watcher.py
@@ -106,7 +106,7 @@ async def test_disable_and_reenable_reload(
exec_req: ExecReqProvider,
):
# tests a bug in which after disabling the reloader, it couldn't be
- # reenabled
+ # re-enabled
k = execution_kernel
sys.path.append(str(tmp_path))
py_file = tmp_path / pathlib.Path(py_modname + ".py")
@@ -131,7 +131,7 @@ async def test_disable_and_reenable_reload(
# TODO: Invesitigate flaky on minimal CI
await asyncio.sleep(INTERVAL / 2)
- # ... and reenable it
+ # ... and re-enable it
config["runtime"]["auto_reload"] = "lazy"
k.set_user_config(UpdateUserConfigCommand(config=config))
await k.run(
diff --git a/tests/_save/test_hash.py b/tests/_save/test_hash.py
index a4eadadbae..44f6fe5a4e 100644
--- a/tests/_save/test_hash.py
+++ b/tests/_save/test_hash.py
@@ -1524,7 +1524,7 @@ class TestSideEffects:
k: Kernel, exec_req: ExecReqProvider
) -> None:
# Actually doesn't test side effects, because there's
- # no "context" level hash for functions. Placed here incase the
+ # no "context" level hash for functions. Placed here in case the
# functionality does change in the future.
await k.run(
[