Skip to content

Commit a3c409b

Browse files
authored
Merge branch 'main' into devin/1760032126-add-cspell-config
2 parents 8a35e2e + d1ca48b commit a3c409b

File tree

8 files changed

+121
-29
lines changed

8 files changed

+121
-29
lines changed

.github/actions/create-venv-for-tests/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
using: 'composite'
1717
steps:
1818
- name: Install uv
19-
uses: astral-sh/setup-uv@v6
19+
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
2020

2121
# Used by tests for installation of ipykernel.
2222
# Create a venv & register it as a kernel.

.github/workflows/ci.yml

Lines changed: 44 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
timeout-minutes: 15
2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v5
29+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
3030

3131
- name: Setup Node.js
32-
uses: actions/setup-node@v5
32+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
3333
with:
3434
cache: 'npm'
3535
node-version: ${{ env.NODE_VERSION }}
@@ -47,17 +47,41 @@ jobs:
4747
- name: Check Prettier formatting
4848
run: npm run format
4949

50+
typecheck:
51+
name: TypeCheck
52+
runs-on: ubuntu-latest
53+
timeout-minutes: 15
54+
steps:
55+
- name: Checkout
56+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
57+
58+
- name: Setup Node.js
59+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
60+
with:
61+
cache: 'npm'
62+
node-version: ${{ env.NODE_VERSION }}
63+
registry-url: 'https://npm.pkg.github.com'
64+
scope: '@deepnote'
65+
66+
- name: Install dependencies
67+
run: npm ci --prefer-offline --no-audit
68+
env:
69+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
71+
- name: Run TypeScript type checking
72+
run: npm run typecheck
73+
5074
qlty:
5175
name: Qlty Check
5276
runs-on: ubuntu-latest
5377
timeout-minutes: 3
5478

5579
steps:
5680
- name: Checkout code
57-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
81+
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
5882

5983
- name: Install qlty
60-
uses: qltysh/qlty-action/install@06730ef41b86b073c3813c0fc07a0c734980ce5d
84+
uses: qltysh/qlty-action/install@a19242102d17e497f437d7466aa01b528537e899
6185

6286
- name: Run qlty check
6387
run: qlty check
@@ -69,12 +93,15 @@ jobs:
6993
name: Build & Test
7094
runs-on: ubuntu-latest
7195
timeout-minutes: 15
96+
permissions:
97+
id-token: write
98+
contents: read
7299
steps:
73100
- name: Checkout
74-
uses: actions/checkout@v5
101+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
75102

76103
- name: Setup Node.js
77-
uses: actions/setup-node@v5
104+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
78105
with:
79106
cache: 'npm'
80107
node-version: ${{ env.NODE_VERSION }}
@@ -95,18 +122,18 @@ jobs:
95122
VSC_JUPYTER_INSTRUMENT_CODE_FOR_COVERAGE: true
96123

97124
- name: Upload coverage to Codecov
98-
uses: codecov/codecov-action@v5
125+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5
99126
with:
100-
token: ${{ secrets.CODECOV_TOKEN }}
127+
use_oidc: true
101128
files: coverage/lcov.info
102129
fail_ci_if_error: true
103130

104131
- name: Upload test results to Codecov
105132
if: '!cancelled()'
106-
uses: codecov/test-results-action@v1
133+
uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1
107134
with:
108-
token: ${{ secrets.CODECOV_TOKEN }}
109-
files: test-report.xml
135+
use_oidc: true
136+
files: test-results.xml
110137
fail_ci_if_error: true
111138

112139
- name: Check dependencies
@@ -121,10 +148,10 @@ jobs:
121148
runs-on: ubuntu-latest
122149
steps:
123150
- name: Checkout
124-
uses: actions/checkout@v5
151+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
125152

126153
- name: Setup Node.js
127-
uses: actions/setup-node@v5
154+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
128155
with:
129156
cache: 'npm'
130157
node-version: ${{ env.NODE_VERSION }}
@@ -169,10 +196,10 @@ jobs:
169196
timeout-minutes: 15
170197
steps:
171198
- name: Checkout
172-
uses: actions/checkout@v5
199+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
173200

174201
- name: Setup Node.js
175-
uses: actions/setup-node@v5
202+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
176203
with:
177204
cache: 'npm'
178205
node-version: ${{ env.NODE_VERSION }}
@@ -193,10 +220,10 @@ jobs:
193220
timeout-minutes: 15
194221
steps:
195222
- name: Checkout
196-
uses: actions/checkout@v5
223+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
197224

198225
- name: Setup Node.js
199-
uses: actions/setup-node@v5
226+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
200227
with:
201228
cache: 'npm'
202229
node-version: ${{ env.NODE_VERSION }}

.github/workflows/copilot-setup-steps.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,23 @@ jobs:
3737
# If you do not check out your code, Copilot will do this for you.
3838
steps:
3939
- name: Checkout code
40-
uses: actions/checkout@v5
40+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
4141

4242
- name: Use Node ${{env.NODE_VERSION}}
43-
uses: actions/setup-node@v5
43+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
4444
with:
4545
node-version: ${{env.NODE_VERSION}}
4646
registry-url: 'https://npm.pkg.github.com'
4747
scope: '@deepnote'
4848

4949
- name: Cache npm files
50-
uses: actions/cache@v4
50+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
5151
with:
5252
path: ~/.npm
5353
key: ${{runner.os}}-${{env.CACHE_NPM_DEPS}}-${{hashFiles('package-lock.json')}}
5454

5555
- name: Cache the out/ directory
56-
uses: actions/cache@v4
56+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
5757
with:
5858
path: ./out
5959
key: ${{runner.os}}-${{env.CACHE_OUT_DIRECTORY}}-${{hashFiles('src/**')}}
@@ -79,7 +79,7 @@ jobs:
7979
continue-on-error: true
8080

8181
- name: Install uv
82-
uses: astral-sh/setup-uv@v6
82+
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7
8383

8484
- name: Setup Venv
8585
run: |

.github/workflows/deps.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v5
27+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
2828

2929
- name: Setup Node.js
30-
uses: actions/setup-node@v5
30+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
3131
with:
3232
cache: 'npm'
3333
node-version: ${{ env.NODE_VERSION }}
@@ -44,7 +44,7 @@ jobs:
4444

4545
- name: Upload audit report
4646
if: always()
47-
uses: actions/upload-artifact@v4
47+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
4848
with:
4949
name: npm-audit-report
5050
path: audit-report.json
@@ -57,10 +57,10 @@ jobs:
5757
runs-on: ubuntu-latest
5858
steps:
5959
- name: Checkout
60-
uses: actions/checkout@v5
60+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
6161

6262
- name: Setup Node.js
63-
uses: actions/setup-node@v5
63+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
6464
with:
6565
node-version: ${{ env.NODE_VERSION }}
6666
cache: 'npm'

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Deepnote Extension for Visual Studio Code
22

3+
[![CI](https://github.com/deepnote/vscode-deepnote/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/deepnote/vscode-deepnote/actions/workflows/ci.yml)
4+
[![codecov](https://codecov.io/gh/deepnote/vscode-deepnote/graph/badge.svg?token=NH066XG7JC)](https://codecov.io/gh/deepnote/vscode-deepnote)
5+
36
A [Visual Studio Code](https://code.visualstudio.com/) extension that provides support for [Deepnote notebooks](https://deepnote.com/) directly within VS Code. This extension allows you to work with Deepnote notebooks in VS Code, bringing the rich data science capabilities of Deepnote to your favorite editor.
47

58
![Deepnote Projects](./images/deepnote-projects.png)

renovate.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"configMigration": true,
4+
"enabledManagers": ["npm", "nvm", "github-actions"],
5+
"github-actions": {
6+
"enabled": true,
7+
"pinDigests": true
8+
},
9+
"extends": ["config:recommended"],
10+
"ignorePaths": ["**/dist/**", "**/node_modules/**", "**/tmp/**", "**/out/**"],
11+
"docker-compose": {
12+
"enabled": false
13+
},
14+
"dockerfile": {
15+
"enabled": false
16+
},
17+
"meteor": {
18+
"enabled": false
19+
},
20+
"npm": {
21+
"minimumReleaseAge": "3 days",
22+
"enabled": true
23+
},
24+
"npmrc": "@deepnote:registry=https://npm.pkg.github.com\nalways-auth=true\n",
25+
"ignoreDeps": [
26+
"@apollo/client",
27+
"@chakra-ui/react",
28+
"@jupyterlab/coreutils",
29+
"@jupyterlab/nbformat",
30+
"@jupyterlab/services",
31+
"@jupyterlab/toc",
32+
"@kubernetes/client-node",
33+
"@types/react",
34+
"monaco-editor",
35+
"node-fetch",
36+
"wait-on",
37+
"@testing-library/user-event",
38+
"react-wrap-balancer"
39+
],
40+
"labels": ["renovate"],
41+
"packageRules": [
42+
{
43+
"description": "Group GitHub Actions",
44+
"groupName": "GitHub Actions",
45+
"groupSlug": "github-actions",
46+
"matchManagers": ["github-actions"]
47+
},
48+
{
49+
"matchDepTypes": ["devDependencies"],
50+
"groupName": "devDependencies",
51+
"groupSlug": "dev-dependencies",
52+
"enabled": true,
53+
"schedule": ["every weekend"]
54+
},
55+
{
56+
"groupName": "definitelyTyped",
57+
"matchPackageNames": ["@types/{/,}**"]
58+
}
59+
]
60+
}

src/kernels/deepnote/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export interface IDeepnoteKernelAutoSelector {
154154
ensureKernelSelected(notebook: vscode.NotebookDocument, token?: vscode.CancellationToken): Promise<void>;
155155
}
156156

157-
export const DEEPNOTE_TOOLKIT_VERSION = '0.2.30.post23';
157+
export const DEEPNOTE_TOOLKIT_VERSION = '0.2.30.post30';
158158
export const DEEPNOTE_TOOLKIT_WHEEL_URL = `https://deepnote-staging-runtime-artifactory.s3.amazonaws.com/deepnote-toolkit-packages/${DEEPNOTE_TOOLKIT_VERSION}/deepnote_toolkit-${DEEPNOTE_TOOLKIT_VERSION}-py3-none-any.whl`;
159159
export const DEEPNOTE_DEFAULT_PORT = 8888;
160160
export const DEEPNOTE_NOTEBOOK_TYPE = 'deepnote';

tsconfig.base.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818

1919
// Strictness
2020
"strict": true,
21+
"forceConsistentCasingInFileNames": true,
2122
"noImplicitAny": true,
2223
"noImplicitThis": true,
2324
"noUnusedLocals": true,
2425
"noUnusedParameters": true,
2526
"noImplicitOverride": true,
2627
"noFallthroughCasesInSwitch": true,
28+
"skipLibCheck": true,
2729
"useUnknownInCatchVariables": false,
2830
"strictPropertyInitialization": false
2931
}

0 commit comments

Comments
 (0)