Skip to content

Commit c1555c6

Browse files
committed
Uplift to copier
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
1 parent fb68100 commit c1555c6

33 files changed

Lines changed: 10752 additions & 9207 deletions

.bumpversion.cfg

Lines changed: 0 additions & 20 deletions
This file was deleted.

.copier-answers.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Changes here will be overwritten by Copier
2+
_commit: a74894d
3+
_src_path: https://github.com/python-project-templates/base.git
4+
add_docs: false
5+
add_extension: jupyter
6+
add_wiki: false
7+
email: t.paine154@gmail.com
8+
github: finos
9+
project_description: notebook templates for jupyterlab
10+
project_name: jupyterlab templates
11+
python_version_primary: '3.11'
12+
team: the jupyterlab_templates authors

.gitattributes

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
examples/* linguist-documentation
12
docs/* linguist-documentation
2-
33
*.ipynb linguist-documentation
4+
Makefile linguist-documentation
45

5-
*.js text eol=lf
6+
*.css text=auto eol=lf
7+
*.html text=auto eol=lf
8+
*.js text=auto eol=lf
9+
*.json text=auto eol=lf
10+
*.less text=auto eol=lf
11+
*.md text=auto eol=lf
12+
*.py text=auto eol=lf
13+
*.toml text=auto eol=lf
14+
*.ts text=auto eol=lf
15+
*.yaml text=auto eol=lf

.github/CODE_OF_CONDUCT.md

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,76 @@
1-
# Code of Conduct for jupyterlab_templates
1+
# Contributor Covenant Code of Conduct
22

3-
Please see the [Community Code of Conduct](https://www.finos.org/code-of-conduct).
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at t.paine154@gmail.com. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ updates:
1616
- "part: dependencies"
1717

1818
- package-ecosystem: "npm"
19-
directory: "/"
19+
directory: "/js"
2020
schedule:
2121
interval: "monthly"
2222
labels:

.github/workflows/build.yaml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: Build Status
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- v*
9+
paths-ignore:
10+
- LICENSE
11+
- README.md
12+
pull_request:
13+
branches:
14+
- main
15+
workflow_dispatch:
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
19+
cancel-in-progress: true
20+
21+
permissions:
22+
contents: read
23+
checks: write
24+
pull-requests: write
25+
26+
jobs:
27+
build:
28+
runs-on: ${{ matrix.os }}
29+
30+
strategy:
31+
matrix:
32+
os: [ubuntu-latest]
33+
python-version: ["3.11"]
34+
node-version: [20.x]
35+
36+
steps:
37+
- uses: actions/checkout@v5
38+
39+
- uses: actions-ext/python/setup@main
40+
with:
41+
version: ${{ matrix.python-version }}
42+
43+
- uses: actions-ext/node/setup@main
44+
with:
45+
version: 22.x
46+
47+
- name: Install dependencies
48+
run: make develop
49+
50+
- name: Lint
51+
run: make lint
52+
if: matrix.os == 'ubuntu-latest'
53+
54+
- name: Checks
55+
run: make checks
56+
if: matrix.os == 'ubuntu-latest'
57+
58+
- name: Build
59+
run: make build
60+
61+
- name: Test
62+
run: make coverage
63+
if: matrix.os == 'ubuntu-latest'
64+
65+
- name: Upload test results (Python)
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.node-version }}
69+
path: '**/junit.xml'
70+
if: ${{ always() }}
71+
72+
- name: Publish Unit Test Results
73+
uses: EnricoMi/publish-unit-test-result-action@v2
74+
with:
75+
files: '**/junit.xml'
76+
if: matrix.os == 'ubuntu-latest'
77+
78+
- name: Upload coverage
79+
uses: codecov/codecov-action@v5
80+
with:
81+
token: ${{ secrets.CODECOV_TOKEN }}
82+
83+
- name: Make dist
84+
run: make dist
85+
if: matrix.os == 'ubuntu-latest'
86+
87+
- uses: actions/upload-artifact@v4
88+
with:
89+
name: dist-${{matrix.os}}
90+
path: dist
91+
if: matrix.os == 'ubuntu-latest'
92+

.github/workflows/build.yml

Lines changed: 0 additions & 104 deletions
This file was deleted.

.github/workflows/copier.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Copier Updates
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 5 * * 0"
7+
8+
jobs:
9+
update:
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions-ext/copier-update@main
16+
with:
17+
token: ${{ secrets.WORKFLOW_TOKEN }}
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,22 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v5
20-
- name: Use Node.js 16.x
21-
uses: actions/setup-node@v5
20+
- uses: actions-ext/node/setup@main
2221
with:
23-
node-version: 16.x
24-
- name: Build node using yarn
25-
run: yarn install --production --frozen-lockfile
22+
version: 22.x
23+
- name: Build node using pnpm
24+
run: pnpm install --production --frozen-lockfile
2625
working-directory: js
2726
- name: Install node-license-validator
2827
run: npm install -g node-license-validator
2928
working-directory: js
3029
- name: Run node-license-validator
3130
run: node-license-validator . --allow-licenses Apache-2.0 MIT BSD-2-Clause BSD BSD-3-Clause Unlicense ISC
3231
working-directory: js
33-
- name: Use Python 3.10
32+
- name: Use Python 3.11
3433
uses: actions/setup-python@v6
3534
with:
36-
python-version: "3.10"
35+
python-version: "3.11"
3736
- name: Install pip-licenses
3837
run: pip3 install pip-licenses
3938
- name: Run pip-licenses

0 commit comments

Comments
 (0)