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
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 --config .config/cog.toml bump --auto --dry-run) != 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 --config .config/cog.toml bump --auto

- name: Create GitHub release
if: steps.check_changes.outputs.has_changes == 'true'
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ repos:
- id: typos

- repo: https://github.com/rvben/rumdl-pre-commit
rev: v0.1.94
rev: v0.1.96
hooks:
- id: rumdl-fmt # Auto-format
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ 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/
Comment thread
lwjohnst86 marked this conversation as resolved.
Comment thread
lwjohnst86 marked this conversation as resolved.
cp .config/rumdl.toml template/.config/
mkdir -p template/tools
cp tools/get-contributors.sh template/tools/
cp .github/pull_request_template.md template/.github/
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
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",
]
2 changes: 2 additions & 0 deletions template/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
"python.testing.pytestEnabled": true,
"python.testing.pytestPath": "${workspaceFolder}/.venv/bin/pytest",
"mypy.runUsingActiveInterpreter": true,
"ruff.configuration": ".config/ruff.toml",
"mypy.configFile": ".config/mypy.ini",
"conventionalCommits.emojiFormat": "emoji",
"conventionalCommits.promptScopes": false
}
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
8 changes: 4 additions & 4 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
uvx ruff check .
uvx 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:
uvx ruff check --fix .
uvx ruff format .
uvx ruff check --fix . --config .config/ruff.toml
uvx ruff format . --config .config/ruff.toml

# Format Markdown files
format-md:
Expand Down
9 changes: 9 additions & 0 deletions template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,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