Skip to content

Commit 7ef5209

Browse files
authored
Merge branch 'main' into devin/1760032126-add-cspell-config
2 parents da16028 + 5b55216 commit 7ef5209

File tree

15 files changed

+364
-36
lines changed

15 files changed

+364
-36
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616

1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
2020

2121
- name: Base Setup
22-
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
22+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@affc83be6020d529b9368cd4d63e467877606600 # v1
2323

2424
- name: Install dependencies
2525
run: python -m pip install -U "jupyterlab>=4.0.0,<5"
@@ -56,15 +56,15 @@ jobs:
5656
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5757

5858
- name: Upload coverage to Codecov
59-
uses: codecov/codecov-action@v5
59+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5
6060
with:
6161
token: ${{ secrets.CODECOV_TOKEN }}
6262
files: coverage.xml,coverage/lcov.info
6363
fail_ci_if_error: true
6464

6565
- name: Upload test results to Codecov
6666
if: '!cancelled()'
67-
uses: codecov/test-results-action@v1
67+
uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1
6868
with:
6969
token: ${{ secrets.CODECOV_TOKEN }}
7070
files: coverage/pytest-results.xml,coverage/junit.xml
@@ -81,7 +81,7 @@ jobs:
8181
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8282

8383
- name: Upload extension packages
84-
uses: actions/upload-artifact@v4
84+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
8585
with:
8686
name: extension-artifacts
8787
path: dist/jupyterlab_deepnote*
@@ -93,11 +93,11 @@ jobs:
9393

9494
steps:
9595
- name: Install Python
96-
uses: actions/setup-python@v5
96+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
9797
with:
9898
python-version: '3.9'
9999
architecture: 'x64'
100-
- uses: actions/download-artifact@v4
100+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
101101
with:
102102
name: extension-artifacts
103103
- name: Install and Test
@@ -182,8 +182,8 @@ jobs:
182182
runs-on: ubuntu-latest
183183
timeout-minutes: 15
184184
steps:
185-
- uses: actions/checkout@v4
186-
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
187-
- uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1
185+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
186+
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@affc83be6020d529b9368cd4d63e467877606600 # v1
187+
- uses: jupyterlab/maintainer-tools/.github/actions/check-links@affc83be6020d529b9368cd4d63e467877606600 # v1
188188
with:
189-
ignore_links: 'https://github.com/deepnote/jupyterlab-deepnote/pull/ https://github.com/deepnote/jupyterlab-deepnote/issues/'
189+
ignore_links: 'https://github.com/deepnote/jupyterlab-deepnote/pull/ https://github.com/deepnote/jupyterlab-deepnote/issues/ https://github.com/deepnote/jupyterlab-deepnote/actions/workflows/ci.yml https://github.com/deepnote/jupyterlab-deepnote/actions/workflows/ci.yml/badge.svg'

.github/workflows/check-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,29 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
2121

2222
- name: Setup Node.js
23-
uses: actions/setup-node@v5
23+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
2424
with:
2525
cache: 'npm'
2626
node-version: ${{ env.NODE_VERSION }}
2727
registry-url: 'https://npm.pkg.github.com'
2828
scope: '@deepnote'
2929
always-auth: true
3030
- name: Base Setup
31-
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
31+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@affc83be6020d529b9368cd4d63e467877606600 # v1
3232

3333
- name: Check Release
34-
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
34+
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@6accaa3c07b69acaa1e14e00ba138133d8cbe879 # v2
3535
with:
3636
token: ${{ secrets.GITHUB_TOKEN }}
3737
env:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3939
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4040

4141
- name: Upload Distributions
42-
uses: actions/upload-artifact@v4
42+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
4343
with:
4444
name: jupyterlab_deepnote-releaser-dist-${{ github.run_number }}
4545
path: .jupyter_releaser_checkout/dist

.github/workflows/ci.yml

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,51 @@ jobs:
2323

2424
steps:
2525
- name: Checkout code
26-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
26+
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
2727

2828
- name: Install qlty
29-
uses: qltysh/qlty-action/install@06730ef41b86b073c3813c0fc07a0c734980ce5d
29+
uses: qltysh/qlty-action/install@a19242102d17e497f437d7466aa01b528537e899
3030

3131
- name: Run qlty check
3232
run: qlty check
3333

3434
- name: Run qlty code smells analysis
3535
run: qlty smells
3636

37+
lint-and-format:
38+
name: Lint & Format
39+
runs-on: ubuntu-latest
40+
timeout-minutes: 15
41+
steps:
42+
- name: Checkout
43+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
44+
45+
- name: Base Setup
46+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@affc83be6020d529b9368cd4d63e467877606600 # v1
47+
48+
- name: Install dependencies
49+
run: python -m pip install -U "jupyterlab>=4.0.0,<5"
50+
51+
- name: Install node dependencies
52+
run: jlpm
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
56+
- name: Run lint and format checks
57+
run: jlpm run lint:check
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
3761
audit-prod:
3862
name: Audit - Production
3963
runs-on: ubuntu-latest
4064
timeout-minutes: 15
4165
steps:
4266
- name: Checkout
43-
uses: actions/checkout@v4
67+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
4468

4569
- name: Base Setup
46-
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
70+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@affc83be6020d529b9368cd4d63e467877606600 # v1
4771

4872
- name: Install dependencies
4973
run: python -m pip install -U "jupyterlab>=4.0.0,<5"
@@ -64,10 +88,10 @@ jobs:
6488
timeout-minutes: 15
6589
steps:
6690
- name: Checkout
67-
uses: actions/checkout@v4
91+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
6892

6993
- name: Base Setup
70-
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
94+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@affc83be6020d529b9368cd4d63e467877606600 # v1
7195

7296
- name: Install dependencies
7397
run: python -m pip install -U "jupyterlab>=4.0.0,<5"
@@ -87,9 +111,9 @@ jobs:
87111
runs-on: ubuntu-latest
88112
steps:
89113
- name: Checkout
90-
uses: actions/checkout@v4
114+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
91115
- name: Base Setup
92-
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
116+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@affc83be6020d529b9368cd4d63e467877606600 # v1
93117

94118
- name: Check licenses
95119
run: yarn check-licenses

.github/workflows/prep-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
permissions:
3030
contents: write
3131
steps:
32-
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
32+
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@affc83be6020d529b9368cd4d63e467877606600 # v1
3333

3434
- name: Prep Release
3535
id: prep-release
36-
uses: jupyter-server/jupyter_releaser/.github/actions/prep-release@v2
36+
uses: jupyter-server/jupyter_releaser/.github/actions/prep-release@6accaa3c07b69acaa1e14e00ba138133d8cbe879 # v2
3737
with:
3838
token: ${{ secrets.GITHUB_TOKEN }}
3939
version_spec: ${{ github.event.inputs.version_spec }}

.github/workflows/publish-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ jobs:
1919
permissions:
2020
id-token: write
2121
steps:
22-
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
22+
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@affc83be6020d529b9368cd4d63e467877606600 # v1
2323

24-
- uses: actions/create-github-app-token@v1
24+
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
2525
id: app-token
2626
with:
2727
app-id: ${{ vars.APP_ID }}
2828
private-key: ${{ secrets.APP_PRIVATE_KEY }}
2929

3030
- name: Populate Release
3131
id: populate-release
32-
uses: jupyter-server/jupyter_releaser/.github/actions/populate-release@v2
32+
uses: jupyter-server/jupyter_releaser/.github/actions/populate-release@6accaa3c07b69acaa1e14e00ba138133d8cbe879 # v2
3333
with:
3434
token: ${{ steps.app-token.outputs.token }}
3535
branch: ${{ github.event.inputs.branch }}
@@ -40,7 +40,7 @@ jobs:
4040
id: finalize-release
4141
env:
4242
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
43-
uses: jupyter-server/jupyter_releaser/.github/actions/finalize-release@v2
43+
uses: jupyter-server/jupyter_releaser/.github/actions/finalize-release@6accaa3c07b69acaa1e14e00ba138133d8cbe879 # v2
4444
with:
4545
token: ${{ steps.app-token.outputs.token }}
4646
release_url: ${{ steps.populate-release.outputs.release_url }}

.github/workflows/update-integration-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030

3131
- name: Checkout
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
3333
with:
3434
token: ${{ secrets.GITHUB_TOKEN }}
3535

@@ -69,7 +69,7 @@ jobs:
6969
fi
7070
7171
- name: Base Setup
72-
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
72+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@affc83be6020d529b9368cd4d63e467877606600 # v1
7373

7474
- name: Install dependencies
7575
run: python -m pip install -U "jupyterlab>=4.0.0,<5"
@@ -80,7 +80,7 @@ jobs:
8080
jlpm
8181
python -m pip install .
8282
83-
- uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots@v1
83+
- uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots@affc83be6020d529b9368cd4d63e467877606600 # v1
8484
with:
8585
github_token: ${{ secrets.GITHUB_TOKEN }}
8686
# Playwright knows how to start JupyterLab server

.husky/post-checkout

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
jlpm install

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
jlpm exec lint-staged

.husky/pre-push

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
branch_name="$(git symbolic-ref --short HEAD)"
2+
if [ "$branch_name" = "main" ]; then
3+
echo "Pushing directly to main is not allowed."
4+
exit 1
5+
fi

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_modules
44
**/package.json
55
!/package.json
66
jupyterlab_deepnote
7+
.venv

0 commit comments

Comments
 (0)