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.

format: format dagger folder in pre-commit

Myles Scolnick257238bec616
diff --git a/dagger/src/main/backend.py b/dagger/src/main/backend.py
index 8c76a9bbf7..d3df1fef52 100644
--- a/dagger/src/main/backend.py
+++ b/dagger/src/main/backend.py
@@ -21,8 +21,16 @@ class Backend:
.with_workdir("/src")
# from GHA: This step is needed since some of our tests rely on the index.html file
.with_exec(["mkdir", "-p", "marimo/_static/assets"])
- .with_exec(["cp", "frontend/index.html", "marimo/_static/index.html"])
- .with_exec(["cp", "frontend/public/favicon.ico", "marimo/_static/favicon.ico"])
+ .with_exec(
+ ["cp", "frontend/index.html", "marimo/_static/index.html"]
+ )
+ .with_exec(
+ [
+ "cp",
+ "frontend/public/favicon.ico",
+ "marimo/_static/favicon.ico",
+ ]
+ )
.with_exec(["make", "py"])
.with_exec(["hatch", "run", "lint"])
.with_exec(["hatch", "run", "typecheck:check"])
@@ -31,7 +39,29 @@ class Backend:
await env.sync()
# test:test
- await env.with_exec(["hatch", "run", "+py=3.12", "test:test", "-v", "tests/", "-k", "not test_cli"]).sync()
+ await env.with_exec(
+ [
+ "hatch",
+ "run",
+ "+py=3.12",
+ "test:test",
+ "-v",
+ "tests/",
+ "-k",
+ "not test_cli",
+ ]
+ ).sync()
# test-optional:test
- return env.with_exec(["hatch", "run", "+py=3.12", "test-optional:test", "-v", "tests/", "-k", "not test_cli"])
+ return env.with_exec(
+ [
+ "hatch",
+ "run",
+ "+py=3.12",
+ "test-optional:test",
+ "-v",
+ "tests/",
+ "-k",
+ "not test_cli",
+ ]
+ )
diff --git a/dagger/src/main/env.py b/dagger/src/main/env.py
index 337f371618..c4cd91e5bc 100644
--- a/dagger/src/main/env.py
+++ b/dagger/src/main/env.py
@@ -50,10 +50,14 @@ class Env:
)
.with_exec(["adduser", "nonroot"])
.with_mounted_cache(
- "/home/nonroot/.cache/pip", dag.cache_volume("python-312"), owner="nonroot"
+ "/home/nonroot/.cache/pip",
+ dag.cache_volume("python-312"),
+ owner="nonroot",
)
.with_mounted_cache(
- "/home/nonroot/.cache/uv", dag.cache_volume("uv-python-312"), owner="nonroot"
+ "/home/nonroot/.cache/uv",
+ dag.cache_volume("uv-python-312"),
+ owner="nonroot",
)
.with_exec(["pip", "install", "hatch", "typos"])
.with_user("nonroot")
diff --git a/pyproject.toml b/pyproject.toml
index 58e8d57032..1d1a3aa4b4 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -225,7 +225,7 @@ clean = "cd docs && make clean"
[tool.ruff]
line-length=79
-include = ["marimo/**/*.py", "tests/**/*.py"]
+include = ["marimo/**/*.py", "tests/**/*.py", "dagger/**/*.py"]
exclude = [
"examples",
"scripts",