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.

[pre-commit.ci] pre-commit autoupdate (#10942)

pre-commit-ci[bot]7cf6f1ecc5f0
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7447795a63..18eebcb0c3 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -25,7 +25,7 @@ repos:
exclude: ^marimo/_tutorials/.*\.md
- repo: https://github.com/crate-ci/typos
- rev: v1
+ rev: v1.50.3
hooks:
- id: typos
pass_filenames: false
@@ -39,7 +39,7 @@ repos:
types: [python]
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.16.6
+ rev: v0.16.9
hooks:
# Run the linter
- id: ruff-check
@@ -56,7 +56,7 @@ repos:
# files: ^(frontend/src/|packages/)
- repo: https://github.com/oxc-project/mirrors-oxfmt
- rev: v0.67.0
+ rev: v0.71.0
hooks:
- id: oxfmt
args: [--write, --config, .oxfmtrc.json]
diff --git a/frontend/src/components/data-table/range-focus/__tests__/atoms.test.ts b/frontend/src/components/data-table/range-focus/__tests__/atoms.test.ts
index 0144cb5366..1679b9d117 100644
--- a/frontend/src/components/data-table/range-focus/__tests__/atoms.test.ts
+++ b/frontend/src/components/data-table/range-focus/__tests__/atoms.test.ts
@@ -56,18 +56,18 @@ function createMockCell(
}
function createMockTable(): Table<T> {
- const mockToggleSelected = vi
- .fn()
- .mockImplementation(function (this: { isSelected: boolean }) {
- this.isSelected = !this.isSelected;
- return { isSelected: this.isSelected };
- });
+ const mockToggleSelected = vi.fn().mockImplementation(function (this: {
+ isSelected: boolean;
+ }) {
+ this.isSelected = !this.isSelected;
+ return { isSelected: this.isSelected };
+ });
- const mockGetIsSelected = vi
- .fn()
- .mockImplementation(function (this: { isSelected: boolean }) {
- return this.isSelected;
- });
+ const mockGetIsSelected = vi.fn().mockImplementation(function (this: {
+ isSelected: boolean;
+ }) {
+ return this.isSelected;
+ });
const rows = [
{
diff --git a/frontend/src/components/tracing/tracing.test.tsx b/frontend/src/components/tracing/tracing.test.tsx
index 92337caa22..0cd1737881 100644
--- a/frontend/src/components/tracing/tracing.test.tsx
+++ b/frontend/src/components/tracing/tracing.test.tsx
@@ -5,36 +5,36 @@ import { formatChartTime } from "./utils";
describe("formatChartTime", () => {
beforeAll(() => {
// Mock Date to always use UTC
- vi.spyOn(global.Date.prototype, "getFullYear").mockImplementation(
- function (this: Date) {
- return this.getUTCFullYear();
- },
- );
- vi.spyOn(global.Date.prototype, "getMonth").mockImplementation(
- function (this: Date) {
- return this.getUTCMonth();
- },
- );
- vi.spyOn(global.Date.prototype, "getDate").mockImplementation(
- function (this: Date) {
- return this.getUTCDate();
- },
- );
- vi.spyOn(global.Date.prototype, "getHours").mockImplementation(
- function (this: Date) {
- return this.getUTCHours();
- },
- );
- vi.spyOn(global.Date.prototype, "getMinutes").mockImplementation(
- function (this: Date) {
- return this.getUTCMinutes();
- },
- );
- vi.spyOn(global.Date.prototype, "getSeconds").mockImplementation(
- function (this: Date) {
- return this.getUTCSeconds();
- },
- );
+ vi.spyOn(global.Date.prototype, "getFullYear").mockImplementation(function (
+ this: Date,
+ ) {
+ return this.getUTCFullYear();
+ });
+ vi.spyOn(global.Date.prototype, "getMonth").mockImplementation(function (
+ this: Date,
+ ) {
+ return this.getUTCMonth();
+ });
+ vi.spyOn(global.Date.prototype, "getDate").mockImplementation(function (
+ this: Date,
+ ) {
+ return this.getUTCDate();
+ });
+ vi.spyOn(global.Date.prototype, "getHours").mockImplementation(function (
+ this: Date,
+ ) {
+ return this.getUTCHours();
+ });
+ vi.spyOn(global.Date.prototype, "getMinutes").mockImplementation(function (
+ this: Date,
+ ) {
+ return this.getUTCMinutes();
+ });
+ vi.spyOn(global.Date.prototype, "getSeconds").mockImplementation(function (
+ this: Date,
+ ) {
+ return this.getUTCSeconds();
+ });
vi.spyOn(global.Date.prototype, "getMilliseconds").mockImplementation(
function (this: Date) {
return this.getUTCMilliseconds();