generated from ImperialCollegeLondon/poetry_template_2
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from alexdewar/port_to_cookiecutter
Port to cookiecutter
- Loading branch information
Showing
25 changed files
with
410 additions
and
52 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
{{ cookiecutter.project_slug }}/.editorconfig |
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 was deleted.
Oops, something went wrong.
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 @@ | ||
{{ cookiecutter.project_slug }}/.markdownlint.yaml |
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 @@ | ||
{{ cookiecutter.project_slug }}/.vscode |
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,15 @@ | ||
{ | ||
"project_name": "My Project", | ||
"project_slug": "{{ cookiecutter.project_name.lower().replace(' ', '_') }}", | ||
"project_description": "", | ||
"author": "Jane Doe", | ||
"author_email": "jane_doe@imperial.ac.uk", | ||
"_copy_without_render": [".github"], | ||
"__prompts__": { | ||
"project_name": "Enter a human-readable name for the project", | ||
"project_slug": "Enter a name for the Python package", | ||
"project_description": "Enter a brief description of the project", | ||
"author": "Enter your full name", | ||
"author_email": "Enter your email address" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = space | ||
indent_size = 4 | ||
max_line_length = 88 | ||
|
||
[*.md] | ||
indent_size = 2 | ||
|
||
[*.yaml] | ||
indent_size = 2 | ||
|
||
[*.yml] | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tab |
26 changes: 26 additions & 0 deletions
26
{{ cookiecutter.project_slug }}/.github/PULL_REQUEST_TEMPLATE.md
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,26 @@ | ||
# Description | ||
|
||
_Please include a summary of the change and which issue is fixed (if any). Please also | ||
include relevant motivation and context. List any dependencies that are required for | ||
this change._ | ||
|
||
Fixes # (issue) | ||
|
||
## Type of change | ||
|
||
- [ ] Documentation (non-breaking change that adds or improves the documentation) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Optimization (non-breaking, back-end change that speeds up the code) | ||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] Breaking change (whatever its nature) | ||
|
||
## Key checklist | ||
|
||
- [ ] All tests pass (eg. `python -m pytest`) | ||
- [ ] The documentation builds and looks OK (eg. `python -m sphinx -b html docs docs/build`) | ||
- [ ] Pre-commit hooks run successfully (eg. `pre-commit run --all-files`) | ||
|
||
## Further checks | ||
|
||
- [ ] Code is commented, particularly in hard-to-understand areas | ||
- [ ] Tests added or an issue has been opened to tackle that in the future. (Indicate issue here: # (issue)) |
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,15 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
14 changes: 14 additions & 0 deletions
14
{{ cookiecutter.project_slug }}/.github/workflows/check-links.yml
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,14 @@ | ||
name: Check links in Markdown files | ||
on: | ||
schedule: | ||
- cron: "0 0 * * 1" # midnight every Monday | ||
|
||
jobs: | ||
check-links: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
use-quiet-mode: "yes" | ||
use-verbose-mode: "yes" |
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,47 @@ | ||
name: Test and build | ||
|
||
on: [push, pull_request, workflow_call] | ||
|
||
jobs: | ||
qa: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pre-commit/action@v3.0.1 | ||
|
||
check-links: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
name: Check links in markdown files | ||
with: | ||
use-quiet-mode: "yes" | ||
use-verbose-mode: "yes" | ||
|
||
test: | ||
needs: qa | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
python-version: ["3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
uses: abatilo/actions-poetry@v3.0.0 | ||
with: | ||
poetry-version: 1.2.2 | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Run tests | ||
run: poetry run pytest |
File renamed without changes.
27 changes: 27 additions & 0 deletions
27
{{ cookiecutter.project_slug }}/.github/workflows/publish.yml
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,27 @@ | ||
on: [release] | ||
|
||
jobs: | ||
test: | ||
uses: ./.github/workflows/ci.yml | ||
|
||
# publish: | ||
# runs-on: ubuntu-latest | ||
# needs: test | ||
# # The following steps to build a Docker image and publish to the GitHub container registry on release. Alternatively, can replace with other publising steps (ie. publishing to PyPI, deploying documentation etc.) | ||
# steps: | ||
# - name: Login to GitHub Container Registry | ||
# uses: docker/login-action@v3 | ||
# with: | ||
# registry: ghcr.io | ||
# username: ${{ github.actor }} | ||
# password: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: Get image metadata | ||
# id: meta | ||
# uses: docker/metadata-action@v5 | ||
# with: | ||
# images: ghcr.io/${{ github.repository }} | ||
# - name: Build and push Docker image | ||
# uses: docker/build-push-action@v5 | ||
# with: | ||
# push: true | ||
# tags: ${{ steps.meta.outputs.tags }} |
Oops, something went wrong.