Skip to content

Commit b454076

Browse files
authored
Add qbraid docs MCP Server , file contexts and formatting workflows (#5)
* add qbraid specific changes * add formatting and mintlify MCP server for qbraid docs * add jlpm deps * formatting python * add context files and improve UI * fix css format issue * fix black and isort deps
1 parent 0df540b commit b454076

31 files changed

+2597
-1034
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ has_settings: true
88
kind: server
99
labextension_name: '@notebook-intelligence/notebook-intelligence'
1010
project_short_description: Notebook Intelligence extension for JupyterLab
11-
python_name: notebook_intelligence
11+
python_name: lab_notebook_intelligence
1212
repository: https://github.com/notebook-intelligence/notebook-intelligence
1313
test: false
1414

.github/workflows/build.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ jobs:
2424
- name: Install dependencies
2525
run: python -m pip install -U "jupyterlab>=4.0.0,<5"
2626

27-
- name: Lint the extension
28-
run: |
29-
set -eux
30-
jlpm
31-
jlpm run lint:check
32-
3327
- name: Build the extension
3428
run: |
3529
set -eux

.github/workflows/check-release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ jobs:
2020
- name: Check Release
2121
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
2222
with:
23-
2423
token: ${{ secrets.GITHUB_TOKEN }}
2524

2625
- name: Upload Distributions
2726
uses: actions/upload-artifact@v4
2827
with:
29-
name: notebook_intelligence-releaser-dist-${{ github.run_number }}
28+
name: lab_notebook_intelligence-releaser-dist-${{ github.run_number }}
3029
path: .jupyter_releaser_checkout/dist

.github/workflows/format.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Check Code Formatting
2+
3+
on:
4+
pull_request:
5+
branches: ['main']
6+
types: [opened, reopened, ready_for_review, synchronize]
7+
workflow_dispatch:
8+
9+
jobs:
10+
check-format:
11+
name: Check Code Formatting
12+
if: github.event.pull_request.draft == false
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v5
18+
19+
- name: Base Setup
20+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
21+
22+
- name: Install dependencies
23+
run: python -m pip install -U "jupyterlab>=4.0.0,<5"
24+
25+
- name: Lint the extension
26+
run: |
27+
set -eux
28+
jlpm
29+
jlpm run lint:check
30+
31+
- name: Set up Python
32+
uses: actions/setup-python@v6
33+
with:
34+
python-version: '3.12'
35+
36+
- name: Install Python dependencies
37+
run: |
38+
python -m pip install --upgrade pip
39+
pip install black isort>=6.0.0
40+
41+
- name: Check Python code formatting
42+
run: |
43+
black --check lab_notebook_intelligence
44+
isort --check lab_notebook_intelligence

.github/workflows/upload-s3-production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ jobs:
8888
- name: Copy wheel file to S3 lab-extensions bucket
8989
run: |
9090
aws s3 rm s3://qbraid-lab-extensions/production/ --recursive --exclude "*" --include "lab_notebook_intelligence*.whl"
91-
aws s3 cp ./ s3://qbraid-lab-extensions/production/ --recursive --exclude "*" --include "lab_notebook_intelligence*.whl"
91+
aws s3 cp ./ s3://qbraid-lab-extensions/production/ --recursive --exclude "*" --include "lab_notebook_intelligence*.whl"

.github/workflows/upload-s3-staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ jobs:
8989
- name: Copy wheel file to S3 lab-extensions bucket
9090
run: |
9191
aws s3 rm s3://qbraid-lab-extensions/staging/ --recursive --exclude "*" --include "lab_notebook_intelligence*.whl"
92-
aws s3 cp ./ s3://qbraid-lab-extensions/staging/ --recursive --exclude "*" --include "lab_notebook_intelligence*.whl"
92+
aws s3 cp ./ s3://qbraid-lab-extensions/staging/ --recursive --exclude "*" --include "lab_notebook_intelligence*.whl"

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ node_modules
33
**/lib
44
**/package.json
55
!/package.json
6-
notebook_intelligence
6+
lab_notebook_intelligence
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
# Copyright (c) Mehmet Bektas <mbektasgh@outlook.com>
2-
2+
33
try:
44
from ._version import __version__
55
except ImportError:
66
# Fallback when using the package in dev mode without installing
77
# in editable mode with pip. It is highly recommended to install
88
# the package from a stable release or in editable mode: https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs
99
import warnings
10+
1011
warnings.warn("Importing 'lab_notebook_intelligence' outside a proper installation.")
1112
__version__ = "dev"
1213

1314
import logging
14-
logging.basicConfig(format='%(asctime)s - %(name)s - %(filename)s - %(levelname)s - %(message)s', level=logging.INFO)
1515

16-
from .extension import NotebookIntelligence
16+
logging.basicConfig(
17+
format="%(asctime)s - %(name)s - %(filename)s - %(levelname)s - %(message)s",
18+
level=logging.INFO,
19+
)
20+
1721
from .api import *
22+
from .extension import NotebookIntelligence
23+
1824

1925
def _jupyter_labextension_paths():
20-
return [{
21-
"src": "labextension",
22-
"dest": "@qbraid/lab-notebook-intelligence"
23-
}]
26+
return [{"src": "labextension", "dest": "@qbraid/lab-notebook-intelligence"}]
2427

2528

2629
def _jupyter_server_extension_points():
27-
return [{
28-
"module": "lab_notebook_intelligence",
29-
"app": NotebookIntelligence
30-
}]
30+
return [{"module": "lab_notebook_intelligence", "app": NotebookIntelligence}]

0 commit comments

Comments
 (0)