-
-
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.
Clean up useless files from jp server template
- Loading branch information
1 parent
aef1fe6
commit 8bc2315
Showing
14 changed files
with
197 additions
and
202 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 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,62 @@ | ||
name: Fix License Headers | ||
|
||
on: | ||
pull_request_target: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
header-license-fix: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Checkout the branch from the PR that triggered the job | ||
run: gh pr checkout ${{ github.event.pull_request.number }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Fix License Header | ||
# pin to include https://github.com/apache/skywalking-eyes/pull/168 | ||
uses: apache/skywalking-eyes/header@e19b828cea6a6027cceae78f05d81317347d21be | ||
with: | ||
mode: fix | ||
|
||
- name: List files changed | ||
id: files-changed | ||
shell: bash -l {0} | ||
run: | | ||
set -ex | ||
export CHANGES=$(git status --porcelain | tee /tmp/modified.log | wc -l) | ||
cat /tmp/modified.log | ||
echo "N_CHANGES=${CHANGES}" >> $GITHUB_OUTPUT | ||
git diff | ||
- name: Commit any changes | ||
if: steps.files-changed.outputs.N_CHANGES != '0' | ||
shell: bash -l {0} | ||
run: | | ||
git config user.name "github-actions[bot]" | ||
git config user.email "github-actions[bot]@users.noreply.github.com" | ||
git pull --no-tags | ||
git add * | ||
git commit -m "Automatic application of license header" | ||
git config push.default upstream | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#!/usr/bin/env bash | ||
pip install -e ".[test,lint]" | ||
pip install -e ".[lint, typing]" | ||
mypy --install-types --non-interactive . | ||
ruff . | ||
black --check --diff . | ||
ruff check . | ||
mdformat --check *.md | ||
pipx run 'validate-pyproject[all]' pyproject.toml |
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 |
---|---|---|
|
@@ -93,6 +93,9 @@ celerybeat-schedule | |
.dmypy.json | ||
dmypy.json | ||
|
||
# ruff | ||
.ruff_cache | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
|
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,16 @@ | ||
header: | ||
license: | ||
spdx-id: BSD-3-Clause | ||
copyright-owner: Datalayer, Inc. | ||
copyright-year: 2023-2024 | ||
software-name: jupyter-kernel-client | ||
|
||
paths-ignore: | ||
- '**/*.ipynb' | ||
- '**/*.json' | ||
- '**/*.yaml' | ||
- '**/*.yml' | ||
- '**/.*' | ||
- 'LICENSE' | ||
|
||
comment: on-failure |
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 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
Oops, something went wrong.