Skip to content

Commit

Permalink
Run pre-commit run --all-files
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Oct 21, 2022
1 parent fb2dd7f commit bf84bc6
Show file tree
Hide file tree
Showing 205 changed files with 12,739 additions and 11,801 deletions.
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ Paste the output from your browser Javascript console here.
</details>

### If using JupyterLab

- JupyterLab version:

<details><summary>Installed Labextensions</summary>
<pre>
Paste the output from your command line running `jupyter labextension list`.
</pre>
</details>
</details>
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/custom_widget_issue.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
name: Custom Widget
about: Issues or questions related to developing a custom widget
labels: "Custom Widget"
labels: 'Custom Widget'
---

<!--
<!--
If this is a:
Bug Report: Please add the relevant pieces of information from the bug report template to this issue (https://github.com/jupyterlab/jupyterlab/issues/new?template=bug_report.md)
Question: Great! Thanks for asking here, since someone else will be able to find the answer more easily in the future. Please try to provide as much detail as you can about what you would like to accomplish and what you have tried.
Feature Request: Please follow the template from https://github.com/jupyterlab/jupyterlab/issues/new?template=feature_request.md
Feature Request: Please follow the template from https://github.com/jupyterlab/jupyterlab/issues/new?template=feature_request.md
-->
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ If you are referencing an existing piece of documentation or example please prov
* There is no example showing how to do [...]
-->


### Suggested Improvement

<!--
Expand Down
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ version: 2
# Ref https://github.com/dependabot/dependabot-core/issues/2521#issuecomment-863261500
updates:
- package-ecosystem: npm
directory: "/"
directory: '/'
schedule:
interval: "daily"
interval: 'daily'
open-pull-requests-limit: 0 # in case you don't want to enable version updates
allow:
- dependency-type: "production"
- dependency-type: 'production'
35 changes: 17 additions & 18 deletions .github/workflows/binder-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,25 @@ on:
types: [opened]

permissions:
pull-requests:
write
pull-requests: write

jobs:
binder:
runs-on: ubuntu-latest
steps:
- name: comment on PR with Binder link
uses: actions/github-script@v1
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
var PR_HEAD_USERREPO = process.env.PR_HEAD_USERREPO;
var PR_HEAD_REF = process.env.PR_HEAD_REF;
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/${PR_HEAD_USERREPO}/${PR_HEAD_REF}?urlpath=lab/tree/docs/source/examples/) :point_left: Launch a binder notebook on branch _${PR_HEAD_USERREPO}/${PR_HEAD_REF}_`
})
env:
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
PR_HEAD_USERREPO: ${{ github.event.pull_request.head.repo.full_name }}
- name: comment on PR with Binder link
uses: actions/github-script@v1
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
var PR_HEAD_USERREPO = process.env.PR_HEAD_USERREPO;
var PR_HEAD_REF = process.env.PR_HEAD_REF;
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/${PR_HEAD_USERREPO}/${PR_HEAD_REF}?urlpath=lab/tree/docs/source/examples/) :point_left: Launch a binder notebook on branch _${PR_HEAD_USERREPO}/${PR_HEAD_REF}_`
})
env:
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
PR_HEAD_USERREPO: ${{ github.event.pull_request.head.repo.full_name }}
74 changes: 37 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,42 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install node
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'yarn'
- name: Install Python
uses: actions/setup-python@v1
with:
python-version: '3.8'
architecture: 'x64'
- name: Cache pip on Linux
uses: actions/cache@v1
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python }}
- name: Checkout
uses: actions/checkout@v1
- name: Install node
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'yarn'
- name: Install Python
uses: actions/setup-python@v1
with:
python-version: '3.8'
architecture: 'x64'
- name: Cache pip on Linux
uses: actions/cache@v1
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install jupyterlab~=3.0 jupyter_packaging~=0.10
- name: Build the extension
run: |
pushd python/ipywidgets
pip install .
popd
jlpm install
jlpm run build
pushd python/jupyterlab_widgets
pwd
pip install -e .
jupyter labextension develop . --overwrite
popd
jupyter labextension list
- name: Install dependencies
run: |
python -m pip install jupyterlab~=3.0 jupyter_packaging~=0.10
- name: Build the extension
run: |
pushd python/ipywidgets
pip install .
popd
jlpm install
jlpm run build
pushd python/jupyterlab_widgets
pwd
pip install -e .
jupyter labextension develop . --overwrite
popd
jupyter labextension list
python -m jupyterlab.browser_check
python -m jupyterlab.browser_check
58 changes: 29 additions & 29 deletions .github/workflows/devinstall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,34 @@ jobs:
devinstall:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install node
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'yarn'
- name: Install Python
uses: actions/setup-python@v1
with:
python-version: '3.8'
architecture: 'x64'
- name: Cache pip on Linux
uses: actions/cache@v1
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python }}
- name: Checkout
uses: actions/checkout@v1
- name: Install node
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'yarn'
- name: Install Python
uses: actions/setup-python@v1
with:
python-version: '3.8'
architecture: 'x64'
- name: Cache pip on Linux
uses: actions/cache@v1
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install notebook jupyterlab~=3.0 jupyter_packaging~=0.10
- name: Run the dev-install script
run: |
./dev-install.sh
jupyter nbextension list
jupyter labextension list
- name: Install dependencies
run: |
python -m pip install notebook jupyterlab~=3.0 jupyter_packaging~=0.10
- name: Run the dev-install script
run: |
./dev-install.sh
jupyter nbextension list
jupyter labextension list
python -m jupyterlab.browser_check
python -m jupyterlab.browser_check
22 changes: 11 additions & 11 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'yarn'
- name: yarn install, integrity, lint
run: |
yarn install --frozen-lockfile
yarn run integrity
yarn run lint:check
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'yarn'
- name: yarn install, integrity, lint
run: |
yarn install --frozen-lockfile
yarn run integrity
yarn run lint:check
102 changes: 51 additions & 51 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Packaging

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: '*'

Expand All @@ -17,58 +17,58 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'yarn'
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
architecture: 'x64'
- name: Checkout
uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'yarn'
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
architecture: 'x64'

- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel build jupyterlab~=3.0
- name: Build PyPI distributions for ipywidgets
run: |
mkdir -p dist/
cd python/ipywidgets
python -m build
cp ./dist/* ../../dist
- name: Build and link packages
run: |
yarn install
yarn run build
- name: Build PyPI distributions for jupyterlab_widgets
run: |
cd python/jupyterlab_widgets
python -m build
cp ./dist/* ../../dist
- name: Build PyPI distributions for widgetsnbextension
run: |
cd python/widgetsnbextension
python -m build
cp ./dist/* ../../dist
- name: Build checksum file
run: |
cd dist
sha256sum * | tee SHA256SUMS
- name: Upload distributions
uses: actions/upload-artifact@v2
with:
name: dist ${{ github.run_number }}
path: ./dist
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel build jupyterlab~=3.0
- name: Build PyPI distributions for ipywidgets
run: |
mkdir -p dist/
cd python/ipywidgets
python -m build
cp ./dist/* ../../dist
- name: Build and link packages
run: |
yarn install
yarn run build
- name: Build PyPI distributions for jupyterlab_widgets
run: |
cd python/jupyterlab_widgets
python -m build
cp ./dist/* ../../dist
- name: Build PyPI distributions for widgetsnbextension
run: |
cd python/widgetsnbextension
python -m build
cp ./dist/* ../../dist
- name: Build checksum file
run: |
cd dist
sha256sum * | tee SHA256SUMS
- name: Upload distributions
uses: actions/upload-artifact@v2
with:
name: dist ${{ github.run_number }}
path: ./dist

install:
runs-on: ${{ matrix.os }}-latest
Expand Down
Loading

0 comments on commit bf84bc6

Please sign in to comment.