Skip to content

Commit 0f13bd0

Browse files
Merge branch 'main' into renovate/configure
2 parents 280371e + f59e68f commit 0f13bd0

File tree

6 files changed

+188
-1
lines changed

6 files changed

+188
-1
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Default owners for everything in the repository
2+
* @saltenasl @jamesbhobbs @Artmann @andyjakubowski

.github/workflows/ci.yml

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,48 @@ 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@v5
57+
58+
- name: Setup Node.js
59+
uses: actions/setup-node@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+
74+
qlty:
75+
name: Qlty Check
76+
runs-on: ubuntu-latest
77+
timeout-minutes: 3
78+
79+
steps:
80+
- name: Checkout code
81+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
82+
83+
- name: Install qlty
84+
uses: qltysh/qlty-action/install@06730ef41b86b073c3813c0fc07a0c734980ce5d
85+
86+
- name: Run qlty check
87+
run: qlty check
88+
89+
- name: Run qlty code smells analysis
90+
run: qlty smells
91+
5092
build:
5193
name: Build & Test
5294
runs-on: ubuntu-latest
@@ -73,6 +115,23 @@ jobs:
73115

74116
- name: Run tests
75117
run: npm test
118+
env:
119+
VSC_JUPYTER_INSTRUMENT_CODE_FOR_COVERAGE: true
120+
121+
- name: Upload coverage to Codecov
122+
uses: codecov/codecov-action@v5
123+
with:
124+
token: ${{ secrets.CODECOV_TOKEN }}
125+
files: coverage/lcov.info
126+
fail_ci_if_error: true
127+
128+
- name: Upload test results to Codecov
129+
if: '!cancelled()'
130+
uses: codecov/test-results-action@v1
131+
with:
132+
token: ${{ secrets.CODECOV_TOKEN }}
133+
files: test-report.xml
134+
fail_ci_if_error: true
76135

77136
- name: Check dependencies
78137
run: npm run checkDependencies
@@ -103,3 +162,51 @@ jobs:
103162

104163
- name: Check Licenses
105164
run: npm run check-licenses
165+
166+
audit-prod:
167+
name: Audit - Production
168+
runs-on: ubuntu-latest
169+
timeout-minutes: 15
170+
steps:
171+
- name: Checkout
172+
uses: actions/checkout@v5
173+
174+
- name: Setup Node.js
175+
uses: actions/setup-node@v5
176+
with:
177+
cache: 'npm'
178+
node-version: ${{ env.NODE_VERSION }}
179+
registry-url: 'https://npm.pkg.github.com'
180+
scope: '@deepnote'
181+
182+
- name: Install dependencies
183+
run: npm ci --prefer-offline --no-audit
184+
env:
185+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
186+
187+
- name: Run audit for production dependencies
188+
run: npm audit --production
189+
190+
audit-all:
191+
name: Audit - All
192+
runs-on: ubuntu-latest
193+
timeout-minutes: 15
194+
steps:
195+
- name: Checkout
196+
uses: actions/checkout@v5
197+
198+
- name: Setup Node.js
199+
uses: actions/setup-node@v5
200+
with:
201+
cache: 'npm'
202+
node-version: ${{ env.NODE_VERSION }}
203+
registry-url: 'https://npm.pkg.github.com'
204+
scope: '@deepnote'
205+
206+
- name: Install dependencies
207+
run: npm ci --prefer-offline --no-audit
208+
env:
209+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
210+
211+
- name: Run audit for all dependencies
212+
run: npm audit

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,9 @@ src/webviews/webview-side/interactive-common/variableExplorerGrid.css
6666
src/webviews/webview-side/interactive-common/variableExplorerGrid.css.map
6767
src/webviews/webview-side/react-common/seti/seti.css
6868
src/webviews/webview-side/react-common/seti/seti.css.map
69+
# Qlty cache directories
70+
.qlty/cache
71+
.qlty/logs
72+
.qlty/out
73+
.qlty/plugin_cachedir
74+
.qlty/results

.qlty/qlty.toml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Qlty Configuration
2+
# Learn more at https://docs.qlty.sh
3+
config_version = "0"
4+
5+
# Plugins configuration
6+
[[plugin]]
7+
name = "actionlint"
8+
9+
[[plugin]]
10+
name = "trufflehog"
11+
12+
[[plugin]]
13+
name = "osv-scanner"
14+
15+
# Source configuration
16+
[[source]]
17+
name = "default"
18+
default = true
19+
20+
# Exclusion patterns
21+
exclude_patterns = [
22+
"node_modules/**",
23+
"dist/**",
24+
"build/**",
25+
"coverage/**",
26+
"**/*.min.js",
27+
"**/*.min.css",
28+
".git/**",
29+
]
30+
31+
# Code Smells Configuration
32+
[smells]
33+
mode = "block"
34+
35+
[smells.boolean_logic]
36+
enabled = true
37+
threshold = 4
38+
39+
[smells.nested_control_flow]
40+
enabled = true
41+
threshold = 4
42+
43+
[smells.function_parameters]
44+
enabled = true
45+
threshold = 5
46+
47+
[smells.function_length]
48+
enabled = true
49+
threshold = 50
50+
51+
[smells.file_length]
52+
enabled = true
53+
threshold = 500
54+
55+
[smells.cognitive_complexity]
56+
enabled = true
57+
threshold = 15
58+
59+
[smells.duplicate_code]
60+
enabled = true
61+
threshold = 6
62+
63+
[smells.large_class]
64+
enabled = true
65+
threshold = 500
66+
67+
[smells.long_parameter_list]
68+
enabled = true
69+
threshold = 2

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)

src/test/coverage.node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function setupCoverage() {
1414
return;
1515
}
1616
const htmlReport = process.env.VSC_JUPYTER_INSTRUMENT_CODE_FOR_COVERAGE_HTML ? ['html'] : [];
17-
const reports = htmlReport.concat(['text', 'text-summary']);
17+
const reports = htmlReport.concat(['text', 'text-summary', 'lcov']);
1818
const NYC = require('nyc');
1919
const nyc = new NYC({
2020
cwd: path.join(EXTENSION_ROOT_DIR_FOR_TESTS),

0 commit comments

Comments
 (0)