Skip to content
Open
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
id: check_changes
run: |
# Determine if a bump is possible.
if [[ $(cog bump --auto --dry-run) != No* ]]; then
if [[ $(cog bump --auto --dry-run --config .config/cog.toml) != No* ]]; then
echo "has_changes=true" >> $GITHUB_OUTPUT
else
echo "has_changes=false" >> $GITHUB_OUTPUT
Expand All @@ -76,7 +76,7 @@ jobs:
- name: Create tag and update changelog
if: steps.check_changes.outputs.has_changes == 'true'
run: |
cog bump --auto
cog bump --auto --config .config/cog.toml

- name: Create GitHub release
if: steps.check_changes.outputs.has_changes == 'true'
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@
},
"files.insertFinalNewline": true,
"conventionalCommits.emojiFormat": "emoji",
"conventionalCommits.promptScopes": false
"conventionalCommits.promptScopes": false,
"typos.config": ".config/typos.toml"
}
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@
- Update test snippet to given, when, then
[#29](https://github.com/seedcase-project/template-python-package/pull/29)
by [`@signekb`](https://github.com/signekb)
([b2f8daa](https://github.com/seedcase-project/template-python-package/commit/b2f8daa439a024a8fefa1ebe4b163a6e331917a2))
([b2f8data](https://github.com/seedcase-project/template-python-package/commit/b2f8daa439a024a8fefa1ebe4b163a6e331917a2))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same typo question here

- Add `test-python` to `run-all`
[#38](https://github.com/seedcase-project/template-python-package/pull/38)
by [`@signekb`](https://github.com/signekb)
Expand Down Expand Up @@ -721,7 +721,7 @@
([6762972](https://github.com/seedcase-project/template-python-package/commit/6762972f58ce63eadba1b1065feeb05456d02183))
- Add pre-commit config file to be synched by
[`@lwjohnst86`](https://github.com/lwjohnst86)
([726a2ba](https://github.com/seedcase-project/template-python-package/commit/726a2ba8430a4d6e886c05eb24897fa9a090da84))

Check warning on line 724 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / check-typos

"ba" should be "by" or "be".
- Needs to push to main, not from PRs
[#23](https://github.com/seedcase-project/template-python-package/pull/23)
by [`@lwjohnst86`](https://github.com/lwjohnst86)
Expand Down Expand Up @@ -1026,7 +1026,7 @@
- Match release workflow to other templates
[#137](https://github.com/seedcase-project/template-python-package/pull/137)
by [`@martonvago`](https://github.com/martonvago)
([ba52dba](https://github.com/seedcase-project/template-python-package/commit/ba52dba18e68710beb78d4cbcfc5ec0a085161a0))

Check warning on line 1029 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / check-typos

"ba" should be "by" or "be".
- Use `bash` in justfile so CI doesn't need zsh
[#149](https://github.com/seedcase-project/template-python-package/pull/149)
by [`@lwjohnst86`](https://github.com/lwjohnst86)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6700,7 +6700,7 @@
.fa-centos:before {
content: "\f789"; }

.fa-adn:before {
.fa-and:before {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this an accidental typo fix or a real change?

content: "\f170"; }

.fa-cloudsmith:before {
Expand Down Expand Up @@ -7291,7 +7291,7 @@
.fa-spotify:before {
content: "\f1bc"; }

.fa-optin-monster:before {
.fa-option-monster:before {
content: "\f23c"; }

.fa-fly:before {
Expand Down Expand Up @@ -8021,7 +8021,7 @@
font-family: 'FontAwesome';
font-display: block;
src: url("../webfonts/fa-regular-400.woff2") format("woff2"), url("../webfonts/fa-regular-400.ttf") format("truetype");
unicode-range: U+F003,U+F006,U+F014,U+F016-F017,U+F01A-F01B,U+F01D,U+F022,U+F03E,U+F044,U+F046,U+F05C-F05D,U+F06E,U+F070,U+F087-F088,U+F08A,U+F094,U+F096-F097,U+F09D,U+F0A0,U+F0A2,U+F0A4-F0A7,U+F0C5,U+F0C7,U+F0E5-F0E6,U+F0EB,U+F0F6-F0F8,U+F10C,U+F114-F115,U+F118-F11A,U+F11C-F11D,U+F133,U+F147,U+F14E,U+F150-F152,U+F185-F186,U+F18E,U+F190-F192,U+F196,U+F1C1-F1C9,U+F1D9,U+F1DB,U+F1E3,U+F1EA,U+F1F7,U+F1F9,U+F20A,U+F247-F248,U+F24A,U+F24D,U+F255-F25B,U+F25D,U+F271-F274,U+F278,U+F27B,U+F28C,U+F28E,U+F29C,U+F2B5,U+F2B7,U+F2BA,U+F2BC,U+F2BE,U+F2C0-F2C1,U+F2C3,U+F2D0,U+F2D2,U+F2D4,U+F2DC; }

Check warning on line 8024 in _extensions/seedcase-project/seedcase-theme/_extensions/quarto-ext/fontawesome/assets/css/all.css

View workflow job for this annotation

GitHub Actions / check-typos

"BA" should be "BY" or "BE".

@font-face {
font-family: 'FontAwesome';
Expand Down

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ update-quarto-theme:

# Update files in the template from the Copier parent folder
sync-template-files:
cp CODE_OF_CONDUCT.md .pre-commit-config.yaml .typos.toml .editorconfig .rumdl.toml template/
cp CODE_OF_CONDUCT.md .pre-commit-config.yaml .typos.toml .editorconfig template/
cp .config/* template/.config/
mkdir -p template/tools
cp tools/get-contributors.sh template/tools/
cp .github/pull_request_template.md template/.github/

# Check for spelling errors in files
check-spelling:
uvx typos
uvx typos --config .config/typos.toml

# Check that URLs work
check-urls:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions template/.rumdl.toml → template/.config/rumdl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
line_length = 72
flavor = "quarto"
exclude = [
# Common directories to exclude
".github",
# This is auto-generated from the qmd version
"**/README.md",
# This has it's own structure
"**/LICENSE.md"
# Common directories to exclude
".github",
# This is auto-generated from the qmd version
"**/README.md",
# This has it's own structure
"**/LICENSE.md",
]

# List style: `-`
Expand Down
4 changes: 4 additions & 0 deletions template/.typos.toml → template/.config/typos.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
[files]
extend-exclude = [
"*.html",
"*.json",
"*.css",
".quarto/*",
"_site/*",
"_extensions/*",
".coverage-report/*",
"site_libs/",
"*.svg",
# Since it has hashes
"CHANGELOG.md",
]
3 changes: 3 additions & 0 deletions template/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@
"python.testing.pytestEnabled": true,
"python.testing.pytestPath": "${workspaceFolder}/.venv/bin/pytest",
"mypy.runUsingActiveInterpreter": true,
"typos.config": ".config/typos.toml",
"ruff.configuration": ".config/ruff.toml",
"mypy.configFile": ".config/mypy.ini"
}
2 changes: 1 addition & 1 deletion template/_quarto.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ quartodoc:
parser: google
dynamic: true
renderer:
style: _renderer.py
style: .config/quartodoc.py
table_style: description-list
show_signature_annotations: true

Expand Down
10 changes: 5 additions & 5 deletions template/justfile.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ test-python:
# Check Python code for any errors that need manual attention
check-python:
# Check formatting
uv run ruff check .
uv run ruff check . --config .config/ruff.toml
# Check types
uv run mypy --pretty .
uv run mypy --pretty . --config-file .config/mypy.ini

# Reformat Python code to match coding style and general structure
format-python:
uv run ruff check --fix .
uv run ruff format .
uv run ruff check --fix . --config .config/ruff.toml
uv run ruff format . --config .config/ruff.toml

# Format Markdown files
format-md:
Expand Down Expand Up @@ -103,7 +103,7 @@ check-security:

# Check for spelling errors in files
check-spelling:
uv run typos
uv run typos --config .config/typos.toml

# Install lychee from https://lychee.cli.rs/guides/getting-started/
# Check that URLs work
Expand Down
9 changes: 9 additions & 0 deletions template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,12 @@ issues = "https://github.com/{{ github_repo_spec }}/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pytest.ini_options]
# - A short traceback (tb) mode to make it easier to view
# - Use the `src/` package (importlib)
# - Use code coverage on the `src/` package
# - If tests fail, do not generate coverage report
# - Create the coverage report in XML (for badge), terminal, and HTML
# - Trigger failure if below 90% code coverage
addopts = "--tb=short --import-mode=importlib --cov=src --no-cov-on-fail --cov-report=term --cov-report=xml --cov-report=html --cov-fail-under=90"
8 changes: 0 additions & 8 deletions template/pytest.ini

This file was deleted.

Loading