Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion template/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ max_line_length = 88
# Have a bit shorter line length for text docs
[*.{txt,md,qmd}]
max_line_length = 72
indent_size = 4

# Python always uses 4 spaces for tabs
[*.py]
Expand Down
6 changes: 4 additions & 2 deletions template/.github/CODEOWNERS.jinja
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# All members on Developers team get added to review PRs
* {{ review_team }}
# Which team or person to inform for PRs that modify these files.
# `*` means all files in the repository.
# TODO: Add code owners.
*
2 changes: 1 addition & 1 deletion template/.github/workflows/add-to-project.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
permissions:
pull-requests: write
with:
# TODO: Fill in the board number.
# TODO: Add the board number.
board-number: ""
app-id: {{ '${{ vars.ADD_TO_BOARD_APP_ID }}' }}
secrets:
Expand Down
6 changes: 4 additions & 2 deletions template/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ repos:
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: check-merge-conflict
args: [--assume-in-merge]

Expand All @@ -27,11 +29,11 @@ repos:
# sub-packages, which confuses pre-commit when it tries to find the latest
# version
- repo: https://github.com/adhtruong/mirrors-typos
rev: v1.43.4
rev: v1.46.2
hooks:
- id: typos

- repo: https://github.com/rvben/rumdl-pre-commit
rev: v0.1.18
rev: v0.1.94
hooks:
- id: rumdl-fmt # Auto-format
31 changes: 16 additions & 15 deletions template/LICENSE.md.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@

Copyright (c) {{ copyright_year }} {{ github_repo }} authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion template/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NOTE: Will be overwritten after running `just build-readme`.
<!-- Will be generated from README.qmd -->
11 changes: 7 additions & 4 deletions template/_metadata.yml.jinja
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
gh:
repo: {{ github_repo }}
org: {{ github_user }}
org: "{{ github_user }}"
repo: "{{ github_repo }}"

# TODO: Add a short description of the package here, used in the README and landing page.
tagline: ""

links:
github: "https://github.com/{{ github_user }}/{{ github_repo }}"
# TODO: Confirm this is the correct URL
site: "https://{{ github_repo }}.{{ github_user }}.org
# TODO: Add the correct URL
site: ""
8 changes: 4 additions & 4 deletions template/_quarto.yml.jinja
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project:
# TODO: change to extension name if using a custom extension
# TODO: Change to extension name if using a custom extension
type: website

website:
Expand All @@ -8,8 +8,8 @@ website:
{% if hosting_provider == "gh-pages" -%}
site-url: "https://{{ github_user }}.github.io/{{ github_repo }}/"
{%- elif hosting_provider == "netlify" -%}
# TODO: Set the Netlify custom domain URL
site-url: "{{ homepage }}"
# TODO: Add the Netlify custom domain URL
site-url: ""
{%- endif %}
repo-url: "https://github.com/{{ github_repo_spec }}"
page-navigation: true
Expand All @@ -20,7 +20,7 @@ website:
logo: "_extensions/seedcase-project/seedcase-theme/logos/{{ github_repo }}/navbar.svg"
logo-alt: "{{ github_repo }} logo: Main page"
{%- else %}
# TODO: add logo
# TODO: Add logo if desired
logo: ""
logo-alt: "{{ github_repo }} logo: Main page"
{%- endif %}
Expand Down
8 changes: 5 additions & 3 deletions template/tools/get-contributors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ contributors=$(gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/$repo_spec/contributors \
--template '{{range .}} [\@{{.login}}]({{.html_url}}){{"\n"}}{{end}}' | \
--template '{{range .}}[\@{{.login}}]({{.html_url}}){{"\n"}}{{end}}' | \
grep -v "\[bot\]" | \
sort | \
tr '\n' ', ' | \
sed -e 's/,$/\n/'
sed -e 's/,$/\n/' | \
sed -e 's/,/,\n/g'
)

echo "The following people have contributed to this project by submitting pull requests :tada:\n\n${contributors}"
echo "The following people have contributed to this project by submitting pull\nrequests :tada:\n\n${contributors}"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- source: project
netlify:
# TODO: Include correct ID and URL
# TODO: Add correct ID and URL
- id: ""
url: "https://{{ github_user }}-{{ github_repo }}.netlify.app"
Loading