diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 02fa0e6..028964d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: repos: # Autoformat and linting, misc. details - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: forbid-new-submodules - id: end-of-file-fixer @@ -25,19 +25,19 @@ repos: exclude: .bumpversion.cfg # Autoformat: Python code - - repo: https://github.com/psf/black - rev: 25.1.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.12.0 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.2 + rev: v0.14.10 hooks: - id: ruff args: ['--fix'] - repo: https://github.com/pre-commit/mirrors-eslint - rev: v9.30.1 + rev: v10.0.0-beta.0 hooks: - id: eslint files: \.tsx?$ diff --git a/src/document/modelFactory.ts b/src/document/modelFactory.ts index 80a4f8d..9430db0 100644 --- a/src/document/modelFactory.ts +++ b/src/document/modelFactory.ts @@ -4,9 +4,7 @@ import { Contents } from '@jupyterlab/services'; import { GlueSessionModel } from './docModel'; -export class GlueSessionModelFactory - implements DocumentRegistry.IModelFactory -{ +export class GlueSessionModelFactory implements DocumentRegistry.IModelFactory { collaborative = true; /** * The name of the model. diff --git a/src/token.ts b/src/token.ts index 1cc4d64..a451c39 100644 --- a/src/token.ts +++ b/src/token.ts @@ -3,8 +3,7 @@ import { Token } from '@lumino/coreutils'; import { IGlueSessionWidget, IGlueSessionSharedModel } from './types'; -export interface IGlueSessionTracker - extends IWidgetTracker { +export interface IGlueSessionTracker extends IWidgetTracker { currentSharedModel(): IGlueSessionSharedModel | undefined; } diff --git a/src/types.ts b/src/types.ts index 1cea426..11cd8d2 100644 --- a/src/types.ts +++ b/src/types.ts @@ -39,8 +39,7 @@ export interface IGlueSessionSharedModelChange { stateChange?: StateChange[]; } -export interface IGlueSessionSharedModel - extends YDocument { +export interface IGlueSessionSharedModel extends YDocument { contents: JSONObject; attributes: IGlueSessionAttributes; dataset: IGlueSessionDataset; @@ -87,8 +86,10 @@ export interface IGlueSessionModel extends DocumentRegistry.IModel { disposed: ISignal; } -export interface IGlueSessionWidget - extends IDocumentWidget { +export interface IGlueSessionWidget extends IDocumentWidget< + Widget, + IGlueSessionModel +> { sessionWidget: SessionWidget; }