Skip to content

Commit be7f643

Browse files
fcollonvalSteven Silvester
authored andcommitted
Initial pre-commit reformat
1 parent e617a8a commit be7f643

File tree

175 files changed

+6363
-6160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+6363
-6160
lines changed

.babelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
{
2-
"presets": ["es2015"],
1+
{
2+
"presets": ["es2015"]
33
}

.eslintrc.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"parserOptions": {
3-
"ecmaVersion": 6,
4-
"sourceType": "module"
5-
},
6-
"rules": {
7-
"semi": 1,
8-
"no-cond-assign": 2,
9-
"no-debugger": 2,
10-
"comma-dangle": 0,
11-
"no-unreachable" : 2
12-
}
2+
"parserOptions": {
3+
"ecmaVersion": 6,
4+
"sourceType": "module"
5+
},
6+
"rules": {
7+
"semi": 1,
8+
"no-cond-assign": 2,
9+
"no-debugger": 2,
10+
"comma-dangle": 0,
11+
"no-unreachable": 2
12+
}
1313
}

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
# Initial pre-commit reformat
2+
1444737514c3e8c6acbe3fc01f9420c8e078d3a0

.github/workflows/codeql-analysis.yml

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,15 @@ name: "CodeQL"
1414

1515
on:
1616
push:
17-
branches: [ 'master' ]
17+
branches: ["master"]
1818
pull_request:
1919
# The branches below must be a subset of the branches above
20-
branches: [ master ]
20+
branches: [master]
2121
schedule:
22-
- cron: '25 18 * * 4'
22+
- cron: "25 18 * * 4"
2323

2424
permissions:
25-
security-events:
26-
write
25+
security-events: write
2726

2827
jobs:
2928
analyze:
@@ -33,41 +32,41 @@ jobs:
3332
strategy:
3433
fail-fast: false
3534
matrix:
36-
language: [ 'python' ]
35+
language: ["python"]
3736
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
3837
# Learn more...
3938
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
4039

4140
steps:
42-
- name: Checkout repository
43-
uses: actions/checkout@v2
41+
- name: Checkout repository
42+
uses: actions/checkout@v2
4443

45-
# Initializes the CodeQL tools for scanning.
46-
- name: Initialize CodeQL
47-
uses: github/codeql-action/init@v1
48-
with:
49-
languages: ${{ matrix.language }}
50-
# If you wish to specify custom queries, you can do so here or in a config file.
51-
# By default, queries listed here will override any specified in a config file.
52-
# Prefix the list here with "+" to use these queries and those in the config file.
53-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
54-
queries: security-and-quality
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v1
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53+
queries: security-and-quality
5554

56-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57-
# If this step fails, then you should remove it and run the build manually (see below)
58-
- name: Autobuild
59-
uses: github/codeql-action/autobuild@v1
55+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
56+
# If this step fails, then you should remove it and run the build manually (see below)
57+
- name: Autobuild
58+
uses: github/codeql-action/autobuild@v1
6059

61-
# ℹ️ Command-line programs to run using the OS shell.
62-
# 📚 https://git.io/JvXDl
60+
# ℹ️ Command-line programs to run using the OS shell.
61+
# 📚 https://git.io/JvXDl
6362

64-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
65-
# and modify them (or add more) to build your code if your project
66-
# uses a compiled language
63+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
64+
# and modify them (or add more) to build your code if your project
65+
# uses a compiled language
6766

68-
#- run: |
69-
# make bootstrap
70-
# make release
67+
#- run: |
68+
# make bootstrap
69+
# make release
7170

72-
- name: Perform CodeQL Analysis
73-
uses: github/codeql-action/analyze@v1
71+
- name: Perform CodeQL Analysis
72+
uses: github/codeql-action/analyze@v1

.github/workflows/downstream.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,45 @@ name: Test downstream projects
22

33
on:
44
push:
5-
branches: '*'
5+
branches: "*"
66
pull_request:
7-
branches: '*'
7+
branches: "*"
88

99
jobs:
1010
tests:
1111
runs-on: ubuntu-latest
1212
timeout-minutes: 15
1313

1414
steps:
15-
- name: Checkout
16-
uses: actions/checkout@v2
15+
- name: Checkout
16+
uses: actions/checkout@v2
1717

18-
- name: Set up Python 3.8
19-
uses: actions/setup-python@v2
20-
with:
21-
python-version: 3.8
18+
- name: Set up Python 3.8
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: 3.8
2222

23-
- name: Install dependencies
24-
run: |
25-
pip install --upgrade pip
26-
pip install "."
27-
pip install --pre --upgrade jupyterlab_server[test] jupyterlab[test] nbclassic[test]
28-
pip freeze
29-
- name: Run tests
30-
working-directory: ../
31-
run: |
32-
# NOTE: tests won't pass from inside the working copy because of
33-
# conftest.py:pytest_plugins (must be at the top level)
34-
pytest --pyargs jupyterlab_server
35-
python -m jupyterlab.browser_check --no-browser-test
23+
- name: Install dependencies
24+
run: |
25+
pip install --upgrade pip
26+
pip install "."
27+
pip install --pre --upgrade jupyterlab_server[test] jupyterlab[test] nbclassic[test]
28+
pip freeze
29+
- name: Run tests
30+
working-directory: ../
31+
run: |
32+
# NOTE: tests won't pass from inside the working copy because of
33+
# conftest.py:pytest_plugins (must be at the top level)
34+
pytest --pyargs jupyterlab_server
35+
python -m jupyterlab.browser_check --no-browser-test
3636
37-
# Make sure we can start and kill the nbclassic server
38-
jupyter nbclassic --no-browser &
39-
TASK_PID=$!
40-
# Make sure the task is running
41-
ps -p $TASK_PID || exit 1
42-
sleep 5
43-
kill $TASK_PID
44-
wait $TASK_PID
45-
- name: Upload coverage to Codecov
46-
uses: codecov/codecov-action@v1
37+
# Make sure we can start and kill the nbclassic server
38+
jupyter nbclassic --no-browser &
39+
TASK_PID=$!
40+
# Make sure the task is running
41+
ps -p $TASK_PID || exit 1
42+
sleep 5
43+
kill $TASK_PID
44+
wait $TASK_PID
45+
- name: Upload coverage to Codecov
46+
uses: codecov/codecov-action@v1
Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
name: Jupyter Server Integration Tests [Linux]
22
on:
33
push:
4-
branches: 'master'
4+
branches: "master"
55
pull_request:
6-
branches: '*'
6+
branches: "*"
77
jobs:
88
build:
99
runs-on: ${{ matrix.os }}-latest
1010
strategy:
1111
fail-fast: false
1212
matrix:
1313
os: [ubuntu]
14-
python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10-dev', 'pypy3' ]
14+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10-dev", "pypy3"]
1515
steps:
16-
- name: Checkout
17-
uses: actions/checkout@v2
18-
- name: Install Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v2
20-
with:
21-
python-version: ${{ matrix.python-version }}
22-
architecture: 'x64'
23-
- name: Upgrade packaging dependencies
24-
run: |
25-
pip install --upgrade pip setuptools wheel --user
26-
- name: Get pip cache dir
27-
id: pip-cache
28-
run: |
29-
echo "::set-output name=dir::$(pip cache dir)"
30-
- name: Cache pip
31-
uses: actions/cache@v2
32-
with:
33-
path: ${{ steps.pip-cache.outputs.dir }}
34-
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.cfg') }}
35-
restore-keys: |
36-
${{ runner.os }}-pip-${{ matrix.python-version }}-
37-
${{ runner.os }}-pip-
38-
- name: Install the Python dependencies
39-
run: |
40-
pip install -e ".[test]"
41-
- name: List installed packages
42-
run: |
43-
pip freeze
44-
pip check
45-
- name: Run the tests
46-
run: |
47-
pytest -vv --integration_tests=true
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: Install Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
architecture: "x64"
23+
- name: Upgrade packaging dependencies
24+
run: |
25+
pip install --upgrade pip setuptools wheel --user
26+
- name: Get pip cache dir
27+
id: pip-cache
28+
run: |
29+
echo "::set-output name=dir::$(pip cache dir)"
30+
- name: Cache pip
31+
uses: actions/cache@v2
32+
with:
33+
path: ${{ steps.pip-cache.outputs.dir }}
34+
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.cfg') }}
35+
restore-keys: |
36+
${{ runner.os }}-pip-${{ matrix.python-version }}-
37+
${{ runner.os }}-pip-
38+
- name: Install the Python dependencies
39+
run: |
40+
pip install -e ".[test]"
41+
- name: List installed packages
42+
run: |
43+
pip freeze
44+
pip check
45+
- name: Run the tests
46+
run: |
47+
pytest -vv --integration_tests=true

0 commit comments

Comments
 (0)