Skip to content

Commit 117a932

Browse files
authored
Merge pull request #248 from martinRenou/fix_nodejs_issue
Fix CI
2 parents 47b129b + b7adb8f commit 117a932

File tree

8 files changed

+637
-327
lines changed

8 files changed

+637
-327
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
jupyter labextension list 2>&1 | grep -ie "ipycanvas.*enabled.*ok" -
5454
5555
- name: Test PEP8
56-
run: flake8 ipycanvas --ignore=E501,W504,W503
56+
run: black --check ipycanvas
5757

5858
- name: Test PEP8 on example notebooks
5959
run: jupytext examples/*.ipynb --check 'black --check {}'
@@ -133,6 +133,8 @@ jobs:
133133
- name: Manually install labextension for lab2
134134
if: ${{ matrix.jlab_version }} == 2.3.2
135135
run: jupyter labextension install --debug .
136+
env:
137+
NODE_OPTIONS: --openssl-legacy-provider
136138

137139
- name: Test installation files
138140
run: |

dev-environment.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ dependencies:
77
- jupyter-packaging
88
- jupyterlab=3
99
- ipywidgets>=7.6
10-
- flake8
1110
- setuptools
1211
- wheel
1312
- twine
1413
- jupytext
15-
- black
14+
- black=21

ipycanvas/__init__.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,32 @@
44
# Copyright (c) Martin Renou.
55
# Distributed under the terms of the Modified BSD License.
66

7-
from .canvas import Path2D, Canvas, RoughCanvas, MultiCanvas, MultiRoughCanvas, hold_canvas # noqa
7+
from .canvas import (
8+
Path2D,
9+
Canvas,
10+
RoughCanvas,
11+
MultiCanvas,
12+
MultiRoughCanvas,
13+
hold_canvas,
14+
) # noqa
815
from ._version import __version__, version_info # noqa
916

1017

1118
def _jupyter_nbextension_paths():
12-
return [{
13-
'section': 'notebook',
14-
'src': 'nbextension/static',
15-
'dest': 'ipycanvas',
16-
'require': 'ipycanvas/extension'
17-
}]
19+
return [
20+
{
21+
"section": "notebook",
22+
"src": "nbextension/static",
23+
"dest": "ipycanvas",
24+
"require": "ipycanvas/extension",
25+
}
26+
]
1827

1928

2029
def _jupyter_labextension_paths():
21-
return [{
22-
'src': 'labextension',
23-
'dest': 'ipycanvas',
24-
}]
30+
return [
31+
{
32+
"src": "labextension",
33+
"dest": "ipycanvas",
34+
}
35+
]

0 commit comments

Comments
 (0)