Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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?$
Expand Down
4 changes: 1 addition & 3 deletions src/document/modelFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { Contents } from '@jupyterlab/services';

import { GlueSessionModel } from './docModel';

export class GlueSessionModelFactory
implements DocumentRegistry.IModelFactory<GlueSessionModel>
{
export class GlueSessionModelFactory implements DocumentRegistry.IModelFactory<GlueSessionModel> {
collaborative = true;
/**
* The name of the model.
Expand Down
3 changes: 1 addition & 2 deletions src/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { Token } from '@lumino/coreutils';

import { IGlueSessionWidget, IGlueSessionSharedModel } from './types';

export interface IGlueSessionTracker
extends IWidgetTracker<IGlueSessionWidget> {
export interface IGlueSessionTracker extends IWidgetTracker<IGlueSessionWidget> {
currentSharedModel(): IGlueSessionSharedModel | undefined;
}

Expand Down
9 changes: 5 additions & 4 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export interface IGlueSessionSharedModelChange {
stateChange?: StateChange<any>[];
}

export interface IGlueSessionSharedModel
extends YDocument<IGlueSessionSharedModelChange> {
export interface IGlueSessionSharedModel extends YDocument<IGlueSessionSharedModelChange> {
contents: JSONObject;
attributes: IGlueSessionAttributes;
dataset: IGlueSessionDataset;
Expand Down Expand Up @@ -87,8 +86,10 @@ export interface IGlueSessionModel extends DocumentRegistry.IModel {
disposed: ISignal<any, void>;
}

export interface IGlueSessionWidget
extends IDocumentWidget<Widget, IGlueSessionModel> {
export interface IGlueSessionWidget extends IDocumentWidget<
Widget,
IGlueSessionModel
> {
sessionWidget: SessionWidget;
}

Expand Down
Loading