Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #338

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,36 @@ ci:
autoupdate_schedule: 'quarterly'
repos:
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports==1.7.0]
- repo: https://github.com/myint/autoflake
rev: v1.4
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args: ["--in-place", "--remove-all-unused-imports", "--ignore-init-module-imports", "--remove-unused-variables"]
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.6.0
rev: 24.3.0
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
rev: v2.34.0
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v2.7.1'
rev: 'v4.0.0-alpha.8'
hooks:
- id: prettier
types: [ts]

- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v8.19.0'
rev: 'v9.0.0-rc.0'
hooks:
- id: eslint
files: \.ts$ # *.ts
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/
function activateWidgetExtension(
app: Application<Widget>,
registry: IJupyterWidgetRegistry
registry: IJupyterWidgetRegistry,

Check failure on line 34 in src/plugin.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 34 in src/plugin.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
): void {
registry.registerWidget({
name: MODULE_NAME,
Expand Down
20 changes: 10 additions & 10 deletions src/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@
this.nodeViews = new widgets.ViewList(
this.addNodeModel,
this.removeNodeView,
this
this,

Check failure on line 120 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 120 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
this.nodeViews.update(this.model.get('graph').get('nodes'));

this.edgeViews = new widgets.ViewList(
this.addEdgeModel,
this.removeEdgeView,
this
this,

Check failure on line 127 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 127 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
this.edgeViews.update(this.model.get('graph').get('edges'));
this.cytoscape_obj.endBatch();
Expand All @@ -145,18 +145,18 @@
this.model.on(
'change:user_zooming_enabled',
this._updateUserZoomingEnabled,
this
this,

Check failure on line 148 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 148 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
this.model.on('change:panning_enabled', this._updatePanningEnabled, this);
this.model.on(
'change:user_panning_enabled',
this._updateUserPanningEnabled,
this
this,

Check failure on line 154 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 154 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
this.model.on(
'change:box_selection_enabled',
this._updateBoxSelectionEnabled,
this
this,

Check failure on line 159 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 159 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
this.model.on('change:selection_type', this._updateSelectionType, this);
this.model.on('change:touch_tap_threshold', this.value_changed, this);
Expand All @@ -171,7 +171,7 @@
this.model.on(
'change:_interaction_handlers',
this.listenForUserEvents,
this
this,

Check failure on line 174 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 174 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);

const layout = this.model.get('layout');
Expand Down Expand Up @@ -309,20 +309,20 @@
}
private _updateUserZoomingEnabled() {
this.cytoscape_obj.userZoomingEnabled(
this.model.get('user_zooming_enabled')
this.model.get('user_zooming_enabled'),

Check failure on line 312 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 312 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
}
private _updatePanningEnabled() {
this.cytoscape_obj.panningEnabled(this.model.get('panning_enabled'));
}
private _updateUserPanningEnabled() {
this.cytoscape_obj.userPanningEnabled(
this.model.get('user_panning_enabled')
this.model.get('user_panning_enabled'),

Check failure on line 320 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 320 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
}
private _updateBoxSelectionEnabled() {
this.cytoscape_obj.boxSelectionEnabled(
this.model.get('box_selection_enabled')
this.model.get('box_selection_enabled'),

Check failure on line 325 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 325 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
}
private _updateSelectionType() {
Expand Down Expand Up @@ -357,7 +357,7 @@
*/
_addElementListeners(
ele: cytoscape.CollectionReturnValue,
view: DOMWidgetView
view: DOMWidgetView,
) {
ele.on('select', (event) => {
view.model.set('selected', true);
Expand Down