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.

chore: upgrade biome (#2698)

Myles Scolnick96e6eb1b6d75
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2fdd68c660..fffd5ea9e2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -43,7 +43,7 @@ repos:
hooks:
- id: biome-check
args: [--config-path, biome.json, --diagnostic-level, warn]
- additional_dependencies: ['@biomejs/[email protected]']
+ additional_dependencies: ['@biomejs/[email protected]']
exclude: |
(?x)^(
docs/_static/.*|
diff --git a/biome.json b/biome.json
index 04d7ebc625..94bb0c2faa 100644
--- a/biome.json
+++ b/biome.json
@@ -1,5 +1,5 @@
{
- "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
+ "$schema": "frontend/node_modules/@biomejs/biome/configuration_schema.json",
"formatter": {
"enabled": true,
"formatWithErrors": false,
@@ -43,6 +43,8 @@
"useButtonType": "info",
"useIframeTitle": "info",
"useKeyWithClickEvents": "off",
+ "useGenericFontNames": "off",
+ "useSemanticElements": "warn",
"useMediaCaption": "info"
},
"complexity": {
diff --git a/frontend/package.json b/frontend/package.json
index 5eb4b0adbc..638fbd313c 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -167,7 +167,7 @@
"react-dom": "^17 || ^18"
},
"devDependencies": {
- "@biomejs/biome": "1.8.3",
+ "@biomejs/biome": "1.9.4",
"@csstools/postcss-light-dark-function": "^2.0.5",
"@playwright/test": "^1.46.1",
"@storybook/addon-docs": "^8.3.6",
diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml
index 0eec718f77..db4b2b34a6 100644
--- a/frontend/pnpm-lock.yaml
+++ b/frontend/pnpm-lock.yaml
@@ -398,8 +398,8 @@ importers:
version: 3.23.8
devDependencies:
'@biomejs/biome':
- specifier: 1.8.3
- version: 1.8.3
+ specifier: 1.9.4
+ version: 1.9.4
'@csstools/postcss-light-dark-function':
specifier: ^2.0.5
version: 2.0.5([email protected])
@@ -729,55 +729,55 @@ packages:
resolution: {integrity: sha512-4iri8i1AqYHJE2DstZYkyEprg6Pq6sKx3xn5FpySk9sNhH7qN2LLlHJCfDTZRILNwQNPD7mATWM0TBui7uC1pA==}
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-/uUV3MV+vyAczO+vKrPdOW0Iaet7UnJMU4bNMinggGJTAnBPjCoLEYcyYtYHNnUNYlv4xZMH6hVIQCAozq8d5w==}
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog==}
engines: {node: '>=14.21.3'}
hasBin: true
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-9DYOjclFpKrH/m1Oz75SSExR8VKvNSSsLnVIqdnKexj6NwmiMlKk94Wa1kZEdv6MCOHGHgyyoV57Cw8WzL5n3A==}
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-bFBsPWrNvkdKrNCYeAp+xo2HecOGPAy9WyNyB/jKnnedgzl4W4Hb9ZMzYNbf8dMCGmUdSavlYHiR01QaYR58cw==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [darwin]
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-UeW44L/AtbmOF7KXLCoM+9PSgPo0IDcyEUfIoOXYeANaNXXf9mLUwV1GeF2OWjyic5zj6CnAJ9uzk2LT3v/wAw==}
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-ngYBh/+bEedqkSevPVhLP4QfVPCpb+4BBe2p7Xs32dBgs7rh9nY2AIYUL6BgLw1JVXV8GlpKmb/hNiuIxfPfZg==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [darwin]
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-9yjUfOFN7wrYsXt/T/gEWfvVxKlnh3yBpnScw98IF+oOeCYb5/b/+K7YNqKROV2i1DlMjg9g/EcN9wvj+NkMuQ==}
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [linux]
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-fed2ji8s+I/m8upWpTJGanqiJ0rnlHOK3DdxsyVLZQ8ClY6qLuPc9uehCREBifRJLl/iJyQpHIRufLDeotsPtw==}
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [linux]
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-UHrGJX7PrKMKzPGoEsooKC9jXJMa28TUSMjcIlbDnIO4EAavCoVmNQaIuUSH0Ls2mpGMwUIf+aZJv657zfWWjA==}
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [linux]
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-I8G2QmuE1teISyT8ie1HXsjFRz9L1m5n83U1O6m30Kw+kPMPSKjag6QGUn+sXT8V+XWIZxFFBoTDEDZW2KPDDw==}
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [linux]
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-J+Hu9WvrBevfy06eU1Na0lpc7uR9tibm9maHynLIoAjLZpQU3IW+OKHUtyL8p6/3pT2Ju5t5emReeIS2SAxhkQ==}
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [win32]
- '@biomejs/[email protected]':
- resolution: {integrity: sha512-/PJ59vA1pnQeKahemaQf4Nyj7IKUvGQSc3Ze1uIGi+Wvr1xF7rGobSrAAG01T/gUDG21vkDsZYM03NAmPiVkqg==}
+ '@biomejs/[email protected]':
+ resolution: {integrity: sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [win32]
@@ -8690,39 +8690,39 @@ snapshots:
'@base2/[email protected]': {}
- '@biomejs/[email protected]':
+ '@biomejs/[email protected]':
optionalDependencies:
- '@biomejs/cli-darwin-arm64': 1.8.3
- '@biomejs/cli-darwin-x64': 1.8.3
- '@biomejs/cli-linux-arm64': 1.8.3
- '@biomejs/cli-linux-arm64-musl': 1.8.3
- '@biomejs/cli-linux-x64': 1.8.3
- '@biomejs/cli-linux-x64-musl': 1.8.3
- '@biomejs/cli-win32-arm64': 1.8.3
- '@biomejs/cli-win32-x64': 1.8.3
-
- '@biomejs/[email protected]':
+ '@biomejs/cli-darwin-arm64': 1.9.4
+ '@biomejs/cli-darwin-x64': 1.9.4
+ '@biomejs/cli-linux-arm64': 1.9.4
+ '@biomejs/cli-linux-arm64-musl': 1.9.4
+ '@biomejs/cli-linux-x64': 1.9.4
+ '@biomejs/cli-linux-x64-musl': 1.9.4
+ '@biomejs/cli-win32-arm64': 1.9.4
+ '@biomejs/cli-win32-x64': 1.9.4
+
+ '@biomejs/[email protected]':
optional: true
- '@biomejs/[email protected]':
+ '@biomejs/[email protected]':
optional: true
- '@biomejs/[email protected]':
+ '@biomejs/[email protected]':
optional: true
- '@biomejs/[email protected]':
+ '@biomejs/[email protected]':
optional: true
- '@biomejs/[email protected]':
+ '@biomejs/[email protected]':
optional: true
- '@biomejs/[email protected]':
+ '@biomejs/[email protected]':
optional: true
- '@biomejs/[email protected]':
+ '@biomejs/[email protected]':
optional: true
- '@biomejs/[email protected]':
+ '@biomejs/[email protected]':
optional: true
'@braintree/[email protected]': {}
diff --git a/frontend/src/components/editor/file-tree/requesting-tree.tsx b/frontend/src/components/editor/file-tree/requesting-tree.tsx
index 64865c2afa..a9ec5adb86 100644
--- a/frontend/src/components/editor/file-tree/requesting-tree.tsx
+++ b/frontend/src/components/editor/file-tree/requesting-tree.tsx
@@ -90,7 +90,7 @@ export class RequestingTree {
async move(fromIds: string[], parentId: string | null): Promise<void> {
const parentPath = parentId
- ? this.delegate.find(parentId)?.data.path ?? parentId
+ ? (this.delegate.find(parentId)?.data.path ?? parentId)
: this.rootPath;
await Promise.all(
@@ -122,7 +122,7 @@ export class RequestingTree {
async createFile(name: string, parentId: string | null): Promise<void> {
const parentPath = parentId
- ? this.delegate.find(parentId)?.data.path ?? parentId
+ ? (this.delegate.find(parentId)?.data.path ?? parentId)
: this.rootPath;
const newFile = await this.callbacks
.createFileOrFolder({ path: parentPath, type: "file", name: name })
@@ -142,7 +142,7 @@ export class RequestingTree {
async createFolder(name: string, parentId: string | null): Promise<void> {
const parentPath = parentId
- ? this.delegate.find(parentId)?.data.path ?? parentId
+ ? (this.delegate.find(parentId)?.data.path ?? parentId)
: this.rootPath;
const newFolder = await this.callbacks
.createFileOrFolder({ path: parentPath, type: "directory", name: name })
diff --git a/frontend/src/components/editor/renderers/grid-layout/styles.css b/frontend/src/components/editor/renderers/grid-layout/styles.css
index a0620751ee..0e239ee893 100644
--- a/frontend/src/components/editor/renderers/grid-layout/styles.css
+++ b/frontend/src/components/editor/renderers/grid-layout/styles.css
@@ -16,8 +16,8 @@
}
.disable-animation .react-grid-item {
- transition-property: none !important;
transition: none !important;
+ transition-property: none !important;
}
/* for images we expand the image to fill the grid item */
diff --git a/frontend/src/components/icons/copy-icon.tsx b/frontend/src/components/icons/copy-icon.tsx
index 8eec5d6705..b807408b38 100644
--- a/frontend/src/components/icons/copy-icon.tsx
+++ b/frontend/src/components/icons/copy-icon.tsx
@@ -42,7 +42,7 @@ export const CopyClipboardIcon: React.FC<Props> = ({
return (
<Tooltip
- content={isCopied ? "Copied!" : tooltip ?? "Copy to clipboard"}
+ content={isCopied ? "Copied!" : (tooltip ?? "Copy to clipboard")}
delayDuration={400}
>
{button}
diff --git a/frontend/src/components/slides/slides.css b/frontend/src/components/slides/slides.css
index 22852532ce..7026b22391 100644
--- a/frontend/src/components/slides/slides.css
+++ b/frontend/src/components/slides/slides.css
@@ -44,8 +44,8 @@
}
@font-face {
- font-family: 'swiper-icons';
- src: url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88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680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');
+ font-family: "swiper-icons";
+ src: url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu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DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA");
font-weight: 400;
font-style: normal;
}
diff --git a/frontend/src/core/islands/islands.css b/frontend/src/core/islands/islands.css
index 743faff129..101ab18370 100644
--- a/frontend/src/core/islands/islands.css
+++ b/frontend/src/core/islands/islands.css
@@ -1,12 +1,11 @@
-@import url('../../css/common.css');
-@import url('../../css/globals.css');
-@import url('../../css/codehilite.css');
-@import url('../../css/katex.min.css');
-@import url('../../css/table.css');
-@import url('../../css/md.css');
-@import url('../../css/admonition.css');
-@import url('../../css/md-tooltip.css');
-@import url('../../css/table.css');
+@import url("../../css/common.css");
+@import url("../../css/globals.css");
+@import url("../../css/codehilite.css");
+@import url("../../css/katex.min.css");
+@import url("../../css/md.css");
+@import url("../../css/admonition.css");
+@import url("../../css/md-tooltip.css");
+@import url("../../css/table.css");
.marimo {
@apply bg-background text-foreground;
diff --git a/frontend/src/css/app/Cell.css b/frontend/src/css/app/Cell.css
index a505ea8154..064d4919e0 100644
--- a/frontend/src/css/app/Cell.css
+++ b/frontend/src/css/app/Cell.css
@@ -259,7 +259,7 @@
/* expand the hover area left and right */
&::before,
&::after {
- content: '';
+ content: "";
position: absolute;
width: var(--gutter-width);
max-width: var(--gutter-width);
diff --git a/frontend/src/css/app/codemirror.css b/frontend/src/css/app/codemirror.css
index fe5bd8ce89..2ff77cab2c 100644
--- a/frontend/src/css/app/codemirror.css
+++ b/frontend/src/css/app/codemirror.css
@@ -108,23 +108,23 @@
}
.cm .cm-completionIcon-function::after {
- content: 'λ';
+ content: "λ";
}
.cm .cm-completionIcon-class::after {
- content: 'τ';
+ content: "τ";
}
.cm .cm-completionIcon-module::after {
- content: 'μ';
+ content: "μ";
}
.cm .cm-completionIcon-statement::after {
- content: 'χ';
+ content: "χ";
}
.cm .cm-completionIcon-keyword::after {
- content: 'κ';
+ content: "κ";
}
/* -- Panels -- */
diff --git a/frontend/src/css/app/print.css b/frontend/src/css/app/print.css
index 288eaaddb1..1213194689 100644
--- a/frontend/src/css/app/print.css
+++ b/frontend/src/css/app/print.css
@@ -30,17 +30,17 @@ body.printing #App {
overflow-x: hidden !important;
}
- h1,
- h2,
- h3,
- h4 {
- break-after: avoid-page;
- }
+ h1,
+ h2,
+ h3,
+ h4 {
+ break-after: avoid-page;
+ }
- article {
- orphans: 2;
- widows: 2;
- }
+ article {
+ orphans: 2;
+ widows: 2;
+ }
.container {
width: 100%;
diff --git a/frontend/src/css/codehilite.css b/frontend/src/css/codehilite.css
index 7c452240e5..7339cbe8bf 100644
--- a/frontend/src/css/codehilite.css
+++ b/frontend/src/css/codehilite.css
@@ -297,11 +297,19 @@ span.linenos.special {
.stderr .codehilite {
.highlight {
/* Chosen to match error coloring in other parts of notebook. */
- color: color-mix(in srgb, var(--error), transparent calc((1 - var(--tw-text-opacity)) * 100%));
+ color: color-mix(
+ in srgb,
+ var(--error),
+ transparent calc((1 - var(--tw-text-opacity)) * 100%)
+ );
}
.gt {
- color: color-mix(in srgb, var(--error), transparent calc((1 - var(--tw-text-opacity)) * 100%));
+ color: color-mix(
+ in srgb,
+ var(--error),
+ transparent calc((1 - var(--tw-text-opacity)) * 100%)
+ );
}
.nb {
diff --git a/frontend/src/css/common.css b/frontend/src/css/common.css
index 7ee48e9a1c..5ec2767035 100644
--- a/frontend/src/css/common.css
+++ b/frontend/src/css/common.css
@@ -6,7 +6,7 @@
display: none !important;
}
- [data-is-dragging='true'] {
+ [data-is-dragging="true"] {
.hover-actions-parent.hover-actions-parent .hover-action:not(:hover) {
display: none !important;
}
@@ -24,6 +24,6 @@
}
/* If parent has any children that have an open pop, show hover actions */
-.hover-actions-parent:has([data-state='open']) .hover-action {
+.hover-actions-parent:has([data-state="open"]) .hover-action {
display: inline-flex !important;
}
diff --git a/frontend/src/css/globals.css b/frontend/src/css/globals.css
index a3e48d815c..4c8e944296 100644
--- a/frontend/src/css/globals.css
+++ b/frontend/src/css/globals.css
@@ -1,27 +1,27 @@
-@import url('@radix-ui/colors/grass.css');
-@import url('@radix-ui/colors/grass-dark.css');
-@import url('@radix-ui/colors/gray.css');
-@import url('@radix-ui/colors/gray-dark.css');
-@import url('@radix-ui/colors/lime.css');
-@import url('@radix-ui/colors/lime-dark.css');
-@import url('@radix-ui/colors/red.css');
-@import url('@radix-ui/colors/red-dark.css');
-@import url('@radix-ui/colors/sky.css');
-@import url('@radix-ui/colors/sky-dark.css');
-@import url('@radix-ui/colors/cyan.css');
-@import url('@radix-ui/colors/cyan-dark.css');
-@import url('@radix-ui/colors/slate.css');
-@import url('@radix-ui/colors/slate-dark.css');
-@import url('@radix-ui/colors/sage.css');
-@import url('@radix-ui/colors/sage-dark.css');
-@import url('@radix-ui/colors/amber.css');
-@import url('@radix-ui/colors/amber-dark.css');
-@import url('@radix-ui/colors/yellow.css');
-@import url('@radix-ui/colors/yellow-dark.css');
-@import url('@radix-ui/colors/blue.css');
-@import url('@radix-ui/colors/blue-dark.css');
-@import url('@radix-ui/colors/purple.css');
-@import url('@radix-ui/colors/purple-dark.css');
+@import url("@radix-ui/colors/grass.css");
+@import url("@radix-ui/colors/grass-dark.css");
+@import url("@radix-ui/colors/gray.css");
+@import url("@radix-ui/colors/gray-dark.css");
+@import url("@radix-ui/colors/lime.css");
+@import url("@radix-ui/colors/lime-dark.css");
+@import url("@radix-ui/colors/red.css");
+@import url("@radix-ui/colors/red-dark.css");
+@import url("@radix-ui/colors/sky.css");
+@import url("@radix-ui/colors/sky-dark.css");
+@import url("@radix-ui/colors/cyan.css");
+@import url("@radix-ui/colors/cyan-dark.css");
+@import url("@radix-ui/colors/slate.css");
+@import url("@radix-ui/colors/slate-dark.css");
+@import url("@radix-ui/colors/sage.css");
+@import url("@radix-ui/colors/sage-dark.css");
+@import url("@radix-ui/colors/amber.css");
+@import url("@radix-ui/colors/amber-dark.css");
+@import url("@radix-ui/colors/yellow.css");
+@import url("@radix-ui/colors/yellow-dark.css");
+@import url("@radix-ui/colors/blue.css");
+@import url("@radix-ui/colors/blue-dark.css");
+@import url("@radix-ui/colors/purple.css");
+@import url("@radix-ui/colors/purple-dark.css");
@tailwind base;
@tailwind components;
@@ -34,9 +34,9 @@
:root,
.marimo {
- --monospace-font: var(--marimo-monospace-font, 'Fira Mono', monospace);
- --text-font: var(--marimo-text-font, 'PT Sans', sans-serif);
- --heading-font: var(--marimo-heading-font, 'Lora', serif);
+ --monospace-font: var(--marimo-monospace-font, "Fira Mono", monospace);
+ --text-font: var(--marimo-text-font, "PT Sans", sans-serif);
+ --heading-font: var(--marimo-heading-font, "Lora", serif);
--radius: 8px;
/* Radix light colors: https://github.com/radix-ui/colors/blob/main/src/light.ts */
@@ -47,17 +47,29 @@
--background: light-dark(hsl(0deg 0% 100%), hsl(150deg 7.7% 10.2%));
--foreground: light-dark(hsl(222.2deg 47.4% 11.2%), hsl(155deg 7% 93%));
--muted: light-dark(hsl(210deg 40% 96.1%), hsl(180deg 14% 1%));
- --muted-foreground: light-dark(hsl(215.4deg 16.3% 46.9%), hsl(155deg 5% 68.3%));
+ --muted-foreground: light-dark(
+ hsl(215.4deg 16.3% 46.9%),
+ hsl(155deg 5% 68.3%)
+ );
--popover: light-dark(hsl(0deg 0% 100%), hsl(151deg 5.5% 15.2%));
- --popover-foreground: light-dark(hsl(222.2deg 47.4% 11.2%), hsl(155deg 5% 68.3%));
+ --popover-foreground: light-dark(
+ hsl(222.2deg 47.4% 11.2%),
+ hsl(155deg 5% 68.3%)
+ );
--card: light-dark(hsl(0deg 0% 100%), hsl(151deg 5.5% 15.2%));
- --card-foreground: light-dark(hsl(222.2deg 47.4% 11.2%), hsl(155deg 5% 76.3%));
+ --card-foreground: light-dark(
+ hsl(222.2deg 47.4% 11.2%),
+ hsl(155deg 5% 76.3%)
+ );
--border: light-dark(hsl(214.3deg 31.8% 91.4%), hsl(153deg 3.7% 24.2%));
--input: light-dark(hsl(0deg 0% 64%), hsl(154deg 3.3% 28.7%));
--primary: light-dark(hsl(208deg 93.5% 47.4%), hsl(192deg 59.8% 39%));
--primary-foreground: light-dark(hsl(210deg 40% 98%), hsl(190deg 80% 84%));
--secondary: light-dark(hsl(210deg 40% 96.1%), hsl(155deg 7% 93%));
- --secondary-foreground: light-dark(hsl(222.2deg 47.4% 11.2%), hsl(151deg 5.5% 15.2%));
+ --secondary-foreground: light-dark(
+ hsl(222.2deg 47.4% 11.2%),
+ hsl(151deg 5.5% 15.2%)
+ );
--accent: light-dark(hsl(209deg 100% 96.5%), hsl(192deg 56.6% 26.5%));
--accent-foreground: light-dark(hsl(211deg 90% 42%), hsl(190deg 80% 84%));
--ring: hsl(215deg 20.2% 65.1%);
@@ -78,7 +90,10 @@
/* Base shadows. */
--base-shadow: light-dark(hsl(0deg 0% 85% / 40%), hsla(0deg 0% 36% / 60%));
- --base-shadow-darker: light-dark(hsl(0deg 0% 50% / 40%), hsl(0deg 0% 50% / 60%));
+ --base-shadow-darker: light-dark(
+ hsl(0deg 0% 50% / 40%),
+ hsl(0deg 0% 50% / 60%)
+ );
--base-shadow-opacity: 5%;
}
@@ -96,7 +111,7 @@
body {
@apply bg-background text-foreground;
- font-feature-settings: 'rlig' 1, 'calt' 1;
+ font-feature-settings: "rlig" 1, "calt" 1;
}
a.hyperlink {
diff --git a/frontend/src/css/index.css b/frontend/src/css/index.css
index 06d721f19d..da4a70a7db 100644
--- a/frontend/src/css/index.css
+++ b/frontend/src/css/index.css
@@ -1,9 +1,9 @@
-@import url('./globals.css');
-@import url('./codehilite.css');
-@import url('./common.css');
-@import url('./katex-fonts.css');
-@import url('./katex.min.css');
-@import url('./md.css');
-@import url('./md-tooltip.css');
-@import url('./admonition.css');
-@import url('./table.css');
+@import url("./globals.css");
+@import url("./codehilite.css");
+@import url("./common.css");
+@import url("./katex-fonts.css");
+@import url("./katex.min.css");
+@import url("./md.css");
+@import url("./md-tooltip.css");
+@import url("./admonition.css");
+@import url("./table.css");
diff --git a/frontend/src/css/katex-fonts.css b/frontend/src/css/katex-fonts.css
index 82e2f6e68c..29a3260a6b 100644
--- a/frontend/src/css/katex-fonts.css
+++ b/frontend/src/css/katex-fonts.css
@@ -3,8 +3,7 @@
font-style: normal;
font-display: block;
font-weight: 400;
- src:
- url("../fonts/KaTeX/KaTeX_AMS-Regular.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_AMS-Regular.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_AMS-Regular.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_AMS-Regular.ttf") format("truetype");
}
@@ -14,8 +13,7 @@
font-style: normal;
font-display: block;
font-weight: 700;
- src:
- url("../fonts/KaTeX/KaTeX_Caligraphic-Bold.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_Caligraphic-Bold.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_Caligraphic-Bold.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_Caligraphic-Bold.ttf") format("truetype");
}
@@ -25,8 +23,7 @@
font-style: normal;
font-display: block;
font-weight: 400;
- src:
- url("../fonts/KaTeX/KaTeX_Caligraphic-Regular.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_Caligraphic-Regular.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_Caligraphic-Regular.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_Caligraphic-Regular.ttf") format("truetype");
}
@@ -36,8 +33,7 @@
font-style: normal;
font-display: block;
font-weight: 700;
- src:
- url("../fonts/KaTeX/KaTeX_Fraktur-Bold.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_Fraktur-Bold.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_Fraktur-Bold.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_Fraktur-Bold.ttf") format("truetype");
}
@@ -47,8 +43,7 @@
font-style: normal;
font-display: block;
font-weight: 400;
- src:
- url("../fonts/KaTeX/KaTeX_Fraktur-Regular.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_Fraktur-Regular.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_Fraktur-Regular.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_Fraktur-Regular.ttf") format("truetype");
}
@@ -58,8 +53,7 @@
font-style: normal;
font-display: block;
font-weight: 700;
- src:
- url("../fonts/KaTeX/KaTeX_Main-Bold.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_Main-Bold.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_Main-Bold.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_Main-Bold.ttf") format("truetype");
}
@@ -68,8 +62,7 @@
font-family: "KaTeX_Main";
font-style: italic;
font-weight: 700;
- src:
- url("../fonts/KaTeX/KaTeX_Main-BoldItalic.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_Main-BoldItalic.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_Main-BoldItalic.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_Main-BoldItalic.ttf") format("truetype");
}
@@ -78,8 +71,7 @@
font-family: "KaTeX_Main";
font-style: italic;
font-weight: 400;
- src:
- url("../fonts/KaTeX/KaTeX_Main-Italic.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_Main-Italic.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_Main-Italic.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_Main-Italic.ttf") format("truetype");
}
@@ -89,8 +81,7 @@
font-style: normal;
font-display: block;
font-weight: 400;
- src:
- url("../fonts/KaTeX/KaTeX_Main-Regular.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_Main-Regular.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_Main-Regular.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_Main-Regular.ttf") format("truetype");
}
@@ -99,8 +90,7 @@
font-family: "KaTeX_Math";
font-style: italic;
font-weight: 700;
- src:
- url("../fonts/KaTeX/KaTeX_Math-BoldItalic.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_Math-BoldItalic.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_Math-BoldItalic.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_Math-BoldItalic.ttf") format("truetype");
}
@@ -109,8 +99,7 @@
font-family: "KaTeX_Math";
font-style: italic;
font-weight: 400;
- src:
- url("../fonts/KaTeX/KaTeX_Math-Italic.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_Math-Italic.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_Math-Italic.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_Math-Italic.ttf") format("truetype");
}
@@ -120,8 +109,7 @@
font-style: normal;
font-display: block;
font-weight: 700;
- src:
- url("../fonts/KaTeX/KaTeX_SansSerif-Bold.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_SansSerif-Bold.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_SansSerif-Bold.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_SansSerif-Bold.ttf") format("truetype");
}
@@ -130,8 +118,7 @@
font-family: "KaTeX_SansSerif";
font-style: italic;
font-weight: 400;
- src:
- url("../fonts/KaTeX/KaTeX_SansSerif-Italic.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_SansSerif-Italic.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_SansSerif-Italic.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_SansSerif-Italic.ttf") format("truetype");
}
@@ -141,8 +128,7 @@
font-style: normal;
font-display: block;
font-weight: 400;
- src:
- url("../fonts/KaTeX/KaTeX_SansSerif-Regular.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_SansSerif-Regular.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_SansSerif-Regular.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_SansSerif-Regular.ttf") format("truetype");
}
@@ -152,8 +138,7 @@
font-style: normal;
font-display: block;
font-weight: 400;
- src:
- url("../fonts/KaTeX/KaTeX_Script-Regular.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_Script-Regular.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_Script-Regular.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_Script-Regular.ttf") format("truetype");
}
@@ -163,8 +148,7 @@
font-style: normal;
font-display: block;
font-weight: 400;
- src:
- url("../fonts/KaTeX/KaTeX_Size1-Regular.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_Size1-Regular.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_Size1-Regular.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_Size1-Regular.ttf") format("truetype");
}
@@ -174,8 +158,7 @@
font-style: normal;
font-display: block;
font-weight: 400;
- src:
- url("../fonts/KaTeX/KaTeX_Size2-Regular.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_Size2-Regular.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_Size2-Regular.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_Size2-Regular.ttf") format("truetype");
}
@@ -185,8 +168,7 @@
font-style: normal;
font-display: block;
font-weight: 400;
- src:
- url("../fonts/KaTeX/KaTeX_Size3-Regular.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_Size3-Regular.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_Size3-Regular.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_Size3-Regular.ttf") format("truetype");
}
@@ -196,8 +178,7 @@
font-style: normal;
font-display: block;
font-weight: 400;
- src:
- url("../fonts/KaTeX/KaTeX_Size4-Regular.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_Size4-Regular.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_Size4-Regular.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_Size4-Regular.ttf") format("truetype");
}
@@ -207,8 +188,7 @@
font-style: normal;
font-display: block;
font-weight: 400;
- src:
- url("../fonts/KaTeX/KaTeX_Typewriter-Regular.woff2") format("woff2"),
+ src: url("../fonts/KaTeX/KaTeX_Typewriter-Regular.woff2") format("woff2"),
url("../fonts/KaTeX/KaTeX_Typewriter-Regular.woff") format("woff"),
url("../fonts/KaTeX/KaTeX_Typewriter-Regular.ttf") format("truetype");
}
diff --git a/frontend/src/css/md.css b/frontend/src/css/md.css
index 16a3697e61..cd89960515 100644
--- a/frontend/src/css/md.css
+++ b/frontend/src/css/md.css
@@ -6,7 +6,8 @@
.markdown p:last-child,
/* This is needed when markdown is used inside buttons or labels */
-.markdown .paragraph:last-child {
+ .markdown
+ .paragraph:last-child {
margin-block-end: 0;
}
diff --git a/frontend/src/plugins/impl/plotly/mapbox.css b/frontend/src/plugins/impl/plotly/mapbox.css
index d64e5fa595..f0cdcccab7 100644
--- a/frontend/src/plugins/impl/plotly/mapbox.css
+++ b/frontend/src/plugins/impl/plotly/mapbox.css
@@ -328,8 +328,6 @@ See https://github.com/plotly/plotly.js/issues/1433
.mapboxgl-ctrl-attrib-inner {
display: none;
}
-.mapboxgl-ctrl-attrib-inner {
-}
.js-plotly-plot .plotly .mapboxgl-ctrl {
clear: both;
pointer-events: auto;
diff --git a/frontend/src/plugins/impl/vega/types.ts b/frontend/src/plugins/impl/vega/types.ts
index 7f92c381cc..d8067ab0f7 100644
--- a/frontend/src/plugins/impl/vega/types.ts
+++ b/frontend/src/plugins/impl/vega/types.ts
@@ -10,7 +10,7 @@ export type { SharedCompositeEncoding } from "vega-lite/build/src/compositemark"
export type { AnyMark, MarkDef } from "vega-lite/build/src/mark";
export { Mark } from "vega-lite/build/src/mark";
export type { TopLevelSpec as VegaLiteSpec } from "vega-lite";
-export { type Field } from "vega-lite/build/src/channeldef";
+export type { Field } from "vega-lite/build/src/channeldef";
export type { SingleDefUnitChannel } from "vega-lite/build/src/channel";
export type {
SelectionParameter,
diff --git a/marimo/_smoke_tests/theming/custom.css b/marimo/_smoke_tests/theming/custom.css
index a395ef1496..7aaa221b54 100644
--- a/marimo/_smoke_tests/theming/custom.css
+++ b/marimo/_smoke_tests/theming/custom.css
@@ -1,10 +1,10 @@
/* Load Inter from Google Fonts */
-@import url('https://fonts.googleapis.com/css?family=Montserrat:300,300italic,800,800italic');
+@import url("https://fonts.googleapis.com/css?family=Montserrat:300,300italic,800,800italic");
:root {
- --marimo-text-font: 'Montserrat', sans-serif;
- --marimo-heading-font: 'Montserrat', sans-serif;
+ --marimo-text-font: "Montserrat", sans-serif;
+ --marimo-heading-font: "Montserrat", sans-serif;
}
.paragraph {