forked from jtpio/ipylab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add IpylabModel and Connections, plugins, pre-commit, ruff and other …
…enhancements.
- Loading branch information
Alan Fleming
committed
Oct 29, 2024
1 parent
910ce84
commit 4342e70
Showing
66 changed files
with
10,908 additions
and
3,778 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Pre-Commit Check | ||
on: | ||
push: | ||
branches: ['main'] | ||
pull_request: | ||
branches: | ||
- '*' | ||
jobs: | ||
pre_commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | ||
- uses: jupyterlab/maintainer-tools/.github/actions/pre-commit@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
ci: | ||
autoupdate_schedule: monthly | ||
skip: | ||
- prettier | ||
default_language_version: | ||
node: system | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-case-conflict | ||
- id: check-ast | ||
- id: check-docstring-first | ||
- id: check-executables-have-shebangs | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: forbid-new-submodules | ||
- id: end-of-file-fixer | ||
exclude: galata/.*-snapshots | ||
- id: requirements-txt-fixer | ||
- id: check-builtin-literals | ||
- repo: https://gitlab.com/bmares/check-json5 | ||
rev: 'v1.0.0' | ||
hooks: | ||
- id: check-json5 | ||
- repo: https://github.com/python-jsonschema/check-jsonschema | ||
rev: 0.29.4 | ||
hooks: | ||
- id: check-github-workflows | ||
- repo: https://github.com/ComPWA/taplo-pre-commit | ||
rev: v0.9.3 | ||
hooks: | ||
- id: taplo-format | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.7.1 | ||
hooks: | ||
- id: ruff | ||
types_or: [python, jupyter] | ||
args: ['--fix'] | ||
- id: ruff-format | ||
types_or: [python, jupyter] | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: 'v2.3.0' | ||
hooks: | ||
- id: codespell | ||
additional_dependencies: | ||
- tomli | ||
|
||
- repo: https://github.com/kynan/nbstripout | ||
rev: '0.7.1' | ||
hooks: | ||
- id: nbstripout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
// To debug jupyterlab running in a venv or conda env: | ||
// - set up Python env in your workspace as per https://code.visualstudio.com/docs/python/environments | ||
// - add an "envFile" prop to each backend config pointing to .vscode/debug.env | ||
// - configure the .vscode/debug.env file as needed | ||
// https://github.com/jupyterlab/vscode-config-template/tree/main | ||
// https://github.com/jupyterlab/vscode-config-template/issues/1 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Python Debugger: Current File all-code", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "${file}", | ||
"console": "integratedTerminal", | ||
"justMyCode": false | ||
}, | ||
{ | ||
"name": "Python Debugger: Current File: just my code", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "${file}", | ||
"console": "integratedTerminal", | ||
"justMyCode": false | ||
}, | ||
{ | ||
"name": "Ipylab", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"args": [ | ||
"--notebook-dir=examples", | ||
"--no-browser", | ||
"--ServerApp.token=''", | ||
"--port=9999" | ||
], | ||
"cwd": "${workspaceFolder}", | ||
"justMyCode": false, | ||
"module": "ipylab", | ||
"presentation": { | ||
"hidden": false | ||
} | ||
}, | ||
{ | ||
"name": "IPylab frontend with Firefox", | ||
"type": "firefox", | ||
"request": "launch", | ||
"reAttach": true, | ||
"url": "http://localhost:9999", | ||
"webRoot": "${workspaceFolder}", | ||
"pathMappings": [ | ||
{ | ||
"url": "webpack://ipylab/src", | ||
"path": "${workspaceFolder}/src" | ||
} | ||
], | ||
"presentation": { | ||
"hidden": false | ||
} | ||
} | ||
], | ||
"compounds": [ | ||
{ | ||
"name": "Debug IPylab with firefox", | ||
"configurations": ["Ipylab", "IPylab frontend with Firefox"] | ||
} | ||
] | ||
} |
Oops, something went wrong.