Skip to content

Commit 8c3c6c6

Browse files
committed
Merge branch 'main' of https://github.com/seedcase-project/template-python-package into ci/update-workflows-from-template
2 parents 71d3768 + b2d1b34 commit 8c3c6c6

24 files changed

Lines changed: 573 additions & 363 deletions

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ max_line_length = 88
1515
# Have a bit shorter line length for text docs
1616
[*.{txt,md,qmd}]
1717
max_line_length = 72
18-
indent_size = 4
1918

2019
# Python always uses 4 spaces for tabs
2120
[*.py]

.github/CODEOWNERS

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
# All members on Developers team get added to review PRs
2-
* @seedcase-project/developers
1+
# Which team or person to inform for PRs that modify these files.
2+
# `*` means all files in the repository.
3+
* @seedcase-project/platform-templates @seedcase-project/admin

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ updates:
66
interval: monthly
77
commit-message:
88
prefix: ci
9-
include: scope

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ _book
4848
public
4949
site
5050

51+
# Cache folders
52+
*_cache/
5153

5254
# Misc files
5355
*.log

.pre-commit-config.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33
ci:
4-
autofix_commit_msg: "chore(pre-commit): :pencil2: automatic fixes"
5-
autoupdate_commit_msg: "ci(pre-commit): :construction_worker: update pre-commit CI version"
4+
autofix_commit_msg: "chore: ✏️ automatic pre-commit hook fixes"
5+
autoupdate_commit_msg: "ci: 👷 update pre-commit CI version"
66

77
repos:
88
- repo: https://github.com/gitleaks/gitleaks
@@ -15,14 +15,11 @@ repos:
1515
hooks:
1616
- id: trailing-whitespace
1717
- id: end-of-file-fixer
18+
- id: mixed-line-ending
19+
args: [--fix=lf]
1820
- id: check-merge-conflict
1921
args: [--assume-in-merge]
2022

21-
- repo: https://github.com/commitizen-tools/commitizen
22-
rev: v4.16.2
23-
hooks:
24-
- id: commitizen
25-
2623
# Use the mirror since the main `typos` repo has tags for different
2724
# sub-packages, which confuses pre-commit when it tries to find the latest
2825
# version

.rumdl.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
line_length = 72
44
flavor = "quarto"
55
exclude = [
6-
# Common directories to exclude
7-
".github",
8-
# This is auto-generated from the qmd version
9-
"**/README.md",
10-
# This has it's own structure
11-
"**/LICENSE.md"
6+
# Common directories to exclude
7+
".github",
8+
# This is auto-generated from the qmd version
9+
"**/README.md",
10+
# This has it's own structure
11+
"**/LICENSE.md",
1212
]
1313

1414
# List style: `-`

.vscode/extensions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"recommendations": [
33
"eamodio.gitlens",
4-
"github.vscode-github-actions",
4+
"GitHub.vscode-github-actions",
55
"redhat.vscode-yaml",
66
"donjayamanne.githistory",
77
"felipecaputo.git-project-manager",
@@ -13,8 +13,8 @@
1313
"pshaddel.conventional-branch",
1414
"tekumara.typos-vscode",
1515
"EditorConfig.EditorConfig",
16+
"samuelcolvin.jinjahtml",
1617
"rvben.rumdl"
1718
],
18-
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
1919
"unwantedRecommendations": []
2020
}

.vscode/settings.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
2-
"files.autoSave": "onFocusChange",
3-
"editor.wordWrap": "off",
42
"editor.formatOnSave": true,
5-
"git.autofetch": false,
6-
"editor.tabCompletion": "on",
73
"editor.snippetSuggestions": "inline",
84
"conventional-branch.type": [
95
"build",
@@ -29,5 +25,7 @@
2925
"*.toml.jinja": "jinja-toml",
3026
"*.qmd.jinja": "jinja-md"
3127
},
32-
"files.insertFinalNewline": true
28+
"files.insertFinalNewline": true,
29+
"conventionalCommits.emojiFormat": "emoji",
30+
"conventionalCommits.promptScopes": false
3331
}

CONTRIBUTING.md

Lines changed: 57 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
## :bug: Issues and bugs
44

55
The easiest way to contribute is to report issues or bugs that you might
6-
find while using `template-python-package`. You can do this by creating
7-
a
8-
[new](https://github.com/seedcase-project/template-python-package/issues/new/choose)
9-
issue on our GitHub repository.
6+
find while using template-python-package. You can do this by creating a
7+
new issue on our GitHub repository.
108

119
## :pencil2: Adding or modifying content
1210

@@ -22,12 +20,13 @@ justfile to manage our project, such as to run checks and test the
2220
template. Both the uv and justfile websites have a more detailed guide
2321
on using uv, but below are some simple instructions to get you started.
2422

25-
It's easiest to install uv and justfile using
26-
[pipx](https://pipx.pypa.io/stable/), so install that first. Then,
27-
install uv and justfile by running:
23+
It's easiest to first
24+
[install uv](https://docs.astral.sh/uv/getting-started/installation/)
25+
and then install justfile with uv. Once you've installed uv, install
26+
justfile by running:
2827

2928
``` bash
30-
pipx install uv rust-just
29+
uv tool install rust-just
3130
```
3231

3332
We keep all our development workflows in the `justfile`, so you can
@@ -46,18 +45,63 @@ a terminal so that the working directory is the root of this project
4645
just run-all
4746
```
4847

49-
When testing the template, copier can only use content kept in the Git
48+
When testing the template, Copier can only use content kept in the Git
5049
history. Meaning that if you make changes to the template and try to
5150
test it, it won't be able to test those changes. You have to commit the
52-
changes first in order for copier to use them.
51+
changes first in order for Copier to use them.
5352

5453
When committing changes, please try to follow
5554
[Conventional Commits](https://decisions.seedcase-project.org/why-conventional-commits/)
5655
as Git messages. Using this convention allows us to be able to
5756
automatically create a release based on the commit message by using
5857
[Commitizen](https://decisions.seedcase-project.org/why-semantic-release-with-commitizen/).
5958
If you don't use Conventional Commits when making a commit, we will
60-
revise the pull request title to follow that format, as we use
61-
[squash merges](https://git-scm.com/docs/git-merge) when merging pull
62-
requests, when merging pull requests, so all other commits in the pull
59+
revise the pull request title to follow that format, as we use squash
60+
merges when merging pull requests, so all other commits in the pull
6361
request will be squashed into one commit.
62+
63+
## :file_folder: Explanation of files and folders
64+
65+
This list describes the default files that are included in the template
66+
as well as explains a bit more about them and what they are used for.
67+
68+
- `.copier-answers.yml`: Contains the answers you gave when copying the
69+
project from the template.
70+
**You should not modify this file directly.**
71+
- `.github/`: Contains GitHub-specific files, such as the workflow to
72+
build the website from the Markdown files.
73+
- `_quarto.yml`: Quarto configuration file for the website, including
74+
settings for the website, such as the theme, navigation, and other
75+
options.
76+
- `.gitignore`: This ignore file tells Git which files to not track.
77+
Unless you know what you are doing, it's best to not touch this file.
78+
- `.pre-commit-config.yaml`: [Pre-commit](https://pre-commit.com/)
79+
configuration file for managing and running checks before each commit.
80+
- `.typos.toml`: [typos](https://github.com/crate-ci/typos) spell
81+
checker configuration file.
82+
- `CITATION.cff`: Structured citation metadata for your project when
83+
archived on [Zenodo](https://zenodo.org/) and used by GitHub to
84+
display the citation information on the repository page. This is used
85+
to add the metadata to Zenodo when a GitHub release has been uploaded
86+
to Zenodo.
87+
- `justfile`: [`just`](https://just.systems/man/en/) configuration file
88+
for scripting project tasks.
89+
- `.editorconfig`: Editor configuration file for
90+
[EditorConfig](https://editorconfig.org/) to maintain consistent
91+
coding styles across different editors and IDEs.
92+
- `CHANGELOG.md`: Changelog file for tracking changes in the project.
93+
- `CONTRIBUTING.md`: Guidelines for contributing to the project.
94+
- `.github/`: Contains GitHub-specific files, such as issue and pull
95+
request templates, workflows,
96+
[dependabot](https://docs.github.com/en/code-security/tutorials/secure-your-dependencies/dependabot-quickstart-guide)
97+
configuration, pull request templates, and a
98+
[CODEOWNERS](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners)
99+
file.
100+
- `_metadata.yml`: Quarto metadata file for the website, including
101+
information about the project, such as the titles and GitHub names.
102+
- `.rumdl.toml`: [rumdl](https://rumdl.dev) configuration file for
103+
formatting Markdown files in the project.
104+
- `cog.toml`: [Cocogitto](https://docs.cocogitto.io) configuration file
105+
for managing versions.
106+
- `.config/cliff.toml`: [git-cliff](https://git-cliff.org) configuration
107+
file for creating the changelog.

LICENSE.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
# MIT License
22

3-
Copyright (c) 2023-2025 template-python-package authors
3+
Copyright (c) 2023-2026 template-python-package authors
44

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

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
13+
The above copyright notice and this permission notice shall be included
14+
in all copies or substantial portions of the Software.
1415

15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)