Skip to content

Commit b8aad00

Browse files
[pre-commit.ci] pre-commit autoupdate (#364)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 22.10.0 → 22.12.0](psf/black@22.10.0...22.12.0) - [github.com/charliermarsh/ruff-pre-commit: v0.0.189 → v0.0.206](astral-sh/ruff-pre-commit@v0.0.189...v0.0.206) * Fix license header job * Fix Jason Weill GH username Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Frédéric Collonval <[email protected]>
1 parent 2677ce7 commit b8aad00

File tree

3 files changed

+21
-24
lines changed

3 files changed

+21
-24
lines changed

.github/workflows/fix-license-header.yml

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,31 @@ jobs:
3030
with:
3131
mode: fix
3232

33+
- name: List files changed
34+
id: files-changed
35+
shell: bash -l {0}
36+
run: |
37+
set -ex
38+
export CHANGES=$(git status --porcelain | tee modified.log | wc -l)
39+
cat modified.log
40+
# Remove the log otherwise it will be committed
41+
rm modified.log
42+
43+
echo "N_CHANGES=${CHANGES}" >> $GITHUB_OUTPUT
44+
45+
git diff
46+
3347
- name: Commit any changes
48+
if: steps.files-changed.outputs.N_CHANGES != '0'
3449
shell: bash -l {0}
3550
run: |
3651
git config user.name "github-actions[bot]"
3752
git config user.email "github-actions[bot]@users.noreply.github.com"
3853
3954
git pull --no-tags
40-
git add *
41-
git commit --allow-empty -m "Automatic application of license header"
42-
env:
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
45-
- name: Get modified files
46-
id: changed-files
47-
uses: tj-actions/changed-files@v35
48-
with:
49-
base_sha: 'HEAD~1'
50-
sha: 'HEAD'
5155
52-
- name: Push fixes
53-
if: steps.changed-files.outputs.any_changed == 'true'
54-
shell: bash -l {0}
55-
run: |
56-
echo "Changed files"
57-
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
58-
echo " $file"
59-
done
60-
git diff HEAD~1
56+
git add *
57+
git commit -m "Automatic application of license header"
6158
6259
git config push.default upstream
6360
git push

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ repos:
3131
[mdformat-gfm, mdformat-frontmatter, mdformat-footnote]
3232

3333
- repo: https://github.com/psf/black
34-
rev: 22.10.0
34+
rev: 22.12.0
3535
hooks:
3636
- id: black
3737

3838
- repo: https://github.com/charliermarsh/ruff-pre-commit
39-
rev: v0.0.189
39+
rev: v0.0.206
4040
hooks:
4141
- id: ruff
4242
args: ["--fix"]

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275
### Enhancements made
276276

277277
- Make openapi optional and lazy [#253](https://github.com/jupyterlab/jupyterlab_server/pull/253) ([@blink1073](https://github.com/blink1073))
278-
- Adds notebook_starts_kernel option to make "canStartKernel" configurable [#248](https://github.com/jupyterlab/jupyterlab_server/pull/248) ([@jweill-aws](https://github.com/jweill-aws))
278+
- Adds notebook_starts_kernel option to make "canStartKernel" configurable [#248](https://github.com/jupyterlab/jupyterlab_server/pull/248) ([@jweill-aws](https://github.com/JasonWeill))
279279
- Clean up tests and add public openapi_spec [#247](https://github.com/jupyterlab/jupyterlab_server/pull/247) ([@blink1073](https://github.com/blink1073))
280280

281281
### Maintenance and upkeep improvements
@@ -285,7 +285,7 @@
285285

286286
### Documentation improvements
287287

288-
- Updates parameter description for notebook_starts_kernel [#250](https://github.com/jupyterlab/jupyterlab_server/pull/250) ([@jweill-aws](https://github.com/jweill-aws))
288+
- Updates parameter description for notebook_starts_kernel [#250](https://github.com/jupyterlab/jupyterlab_server/pull/250) ([@jweill-aws](https://github.com/JasonWeill))
289289

290290
### Contributors to this release
291291

0 commit comments

Comments
 (0)