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
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: v0.0.81
_commit: v0.0.83
_src_path: gh:LabAutomationAndScreening/copier-base-template.git
description: Copier template for creating Python libraries and executables
install_claude_cli: false
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@
"initializeCommand": "sh .devcontainer/initialize-command.sh",
"onCreateCommand": "sh .devcontainer/on-create-command.sh",
"postStartCommand": "sh .devcontainer/post-start-command.sh"
// Devcontainer context hash (do not manually edit this, it's managed by a pre-commit hook): ac3ca44a # spellchecker:disable-line
// Devcontainer context hash (do not manually edit this, it's managed by a pre-commit hook): a69fbb56 # spellchecker:disable-line
}
2 changes: 1 addition & 1 deletion .devcontainer/install-ci-tooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pathlib import Path

UV_VERSION = "0.9.7"
PNPM_VERSION = "10.20.0"
PNPM_VERSION = "10.21.0"
COPIER_VERSION = "9.10.3"
COPIER_TEMPLATE_EXTENSIONS_VERSION = "0.3.3"
PRE_COMMIT_VERSION = "4.3.0"
Expand Down
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,13 @@ repos:
rev: e73b8ba0c1316be565983236c72e653ad44e6b66 # frozen: v1.7.7
hooks:
- id: docformatter
exclude: (tests*)|(exceptions\.py)|(warnings\.py)
exclude: |
(?x)^(
.*/tests/.*|
exceptions\.py|
warnings\.py|
.*/generated/open[-_]api/.*|
)$
args:
- --in-place
- --wrap-summaries=150
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-black.json)](https://github.com/copier-org/copier)
[![Actions status](https://www.github.com/LabAutomationAndScreening/copier-python-package-template/actions/workflows/ci.yaml/badge.svg?branch=main)](https://www.github.com/LabAutomationAndScreening/copier-python-package-template/actions)
[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://www.github.com/LabAutomationAndScreening/copier-python-package-template)

[![OpenIssues](http://isitmaintained.com/badge/open/LabAutomationAndScreening/copier-python-package-template.svg)](http://isitmaintained.com/project/LabAutomationAndScreening/copier-python-package-template)

# Usage
To create a new repository using this template:
Expand Down
1 change: 1 addition & 0 deletions copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ python_ci_versions:
choices:
- "3.12.7"
- "3.13.2"
- "3.14.0"


aws_identity_center_id:
Expand Down
18 changes: 10 additions & 8 deletions extensions/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ class ContextUpdater(ContextHook):
@override
def hook(self, context: dict[Any, Any]) -> dict[Any, Any]:
context["uv_version"] = "0.9.7"
context["pnpm_version"] = "10.20.0"
context["pnpm_version"] = "10.21.0"
context["pre_commit_version"] = "4.3.0"
context["pyright_version"] = "1.1.407"
context["pytest_version"] = "8.4.2"
context["pytest_version"] = "9.0.0"
context["pytest_randomly_version"] = "4.0.1"
context["pytest_cov_version"] = "7.0.0"
context["copier_version"] = "9.10.3"
context["copier_template_extensions_version"] = "0.3.3"
context["sphinx_version"] = "8.1.3"
context["pulumi_version"] = "3.205.0"
context["pulumi_aws_version"] = "7.10.0"
context["pulumi_aws_native_version"] = "1.37.0"
context["pulumi_version"] = "3.206.0"
context["pulumi_aws_version"] = "7.11.0"
context["pulumi_aws_native_version"] = "1.38.0"
context["pulumi_command_version"] = "1.1.3"
context["pulumi_github_version"] = "6.8.0"
context["pulumi_okta_version"] = "6.1.0"
Expand All @@ -41,6 +41,8 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]:
context["uuid_utils_version"] = "0.11.0"
context["syrupy_version"] = "5.0.0"
context["structlog_version"] = "25.5.0"
context["httpx_version"] = "0.28.1"
context["python_kiota_bundle_version"] = "1.9.7"
Comment on lines +44 to +45
Copy link

Choose a reason for hiding this comment

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

🧹 Nitpick | 🔵 Trivial

Document the purpose of new dependencies.

The addition of httpx_version and python_kiota_bundle_version suggests support for OpenAPI client generation. Ensure these dependencies are documented in the template's README or usage guide, explaining when and how they are used.

🤖 Prompt for AI Agents
In extensions/context.py around lines 44 to 45, two new keys were added
(httpx_version and python_kiota_bundle_version) but their purpose is not
documented; update the template README (README.md at repo root or docs/usage.md
if present) to add a short section describing these dependencies: why they are
included (supporting OpenAPI client generation), when they are required, how
they are used in the template generation flow, and note the pinned versions and
how to update them; also add a one-line comment above the new keys in
extensions/context.py briefly stating their role and linking to the README
section.


context["node_version"] = "24.7.0"
context["nuxt_ui_version"] = "^4.1.0"
Expand All @@ -59,15 +61,15 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]:
context["nuxt_eslint_version"] = "^1.10.0"
context["zod_version"] = "^4.1.12"
context["zod_from_json_schema_version"] = "^0.5.1"
context["types_node_version"] = "^24.9.2"
context["types_node_version"] = "^24.10.0"
context["nuxt_apollo_version"] = "5.0.0-alpha.15"
context["graphql_codegen_cli_version"] = "^6.0.0"
context["graphql_codegen_typescript_version"] = "^5.0.0"
context["graphql_codegen_typescript_operations_version"] = "^5.0.0"
context["tailwindcss_version"] = "^4.1.11"
context["iconify_vue_version"] = "^5.0.0"
context["iconify_json_lucide_version"] = "^1.2.71"
context["nuxt_fonts_version"] = "^0.11.4"
context["nuxt_fonts_version"] = "^0.12.1"
context["nuxtjs_color_mode_version"] = "^3.5.2"
context["vue_test_utils_version"] = "^2.4.6"
context["nuxt_test_utils_version"] = "3.19.1"
Expand All @@ -94,9 +96,9 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]:
context["gha_linux_runner"] = "ubuntu-24.04"
context["gha_windows_runner"] = "windows-2025"

context["py311_version"] = ""
context["py312_version"] = "3.12.7"
context["py313_version"] = "3.13.2"
context["py314_version"] = "3.14.0"

context["debian_release_name"] = "bookworm"
context["alpine_image_version"] = "3.22"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ readme = "README.md"
requires-python = ">=3.12.7"
dependencies = [
# Managed by upstream template
"pytest>=8.4.2",
"pytest>=9.0.0",
"pytest-cov>=7.0.0",
"pytest-randomly>=4.0.1",
"pyright[nodejs]>=1.1.407",
Expand Down
2 changes: 2 additions & 0 deletions template/.coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ branch = True
omit =
# omit anything supplied by vendors
*/vendor_files/*
# omit any auto-generated API client code
*/generated/open_api/*

[report]
# Regexes for lines to exclude from consideration
Expand Down
8 changes: 7 additions & 1 deletion template/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,13 @@ repos:
rev: e73b8ba0c1316be565983236c72e653ad44e6b66 # frozen: v1.7.7
hooks:
- id: docformatter
exclude: (tests*)|(exceptions\.py)|(warnings\.py)
exclude: |
(?x)^(
.*/tests/.*|
exceptions\.py|
warnings\.py|
.*/generated/open[-_]api/.*|
)$
args:
- --in-place
- --wrap-summaries=150
Expand Down
3 changes: 2 additions & 1 deletion template/README.md.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
[![Downloads](https://pepy.tech/badge/{% endraw %}{{ package_name }}{% raw %})](https://pepy.tech/project/{% endraw %}{{ package_name }}{% raw %})
[![Python Versions](https://img.shields.io/pypi/pyversions/{% endraw %}{{ package_name }}{% raw %}.svg)](https://pypi.org/project/{% endraw %}{{ package_name }}{% raw %}/)
{% endraw %}{% endif %}{% raw %}[![Codecov](https://codecov.io/gh/{% endraw %}{{ full_repo_url | replace("https://github.com/", "") }}{% raw %}/branch/main/graph/badge.svg)](https://codecov.io/gh/{% endraw %}{{ full_repo_url | replace("https://github.com/", "") }}{% raw %}){% endraw %}{% if create_docs %}{% raw %}
[![Documentation Status](https://readthedocs.org/projects/{% endraw %}{{ package_name }}{% raw %}/badge/?version=latest)](https://{% endraw %}{{ package_name }}{% raw %}.readthedocs.io/en/latest/?badge=latest){% endraw %}{% endif %}{% raw %}
[![Documentation Status](https://readthedocs.org/projects/{% endraw %}{{ package_name }}{% raw %}/badge/?version=latest)](https://{% endraw %}{{ package_name }}{% raw %}.readthedocs.io/en/latest/?badge=latest){% endraw %}{% endif %}{% raw %}{% endraw %}{% if is_open_source%}{% raw %}
[![OpenIssues](https://isitmaintained.com/badge/open/{% endraw %}{{ repo_org_name }}/{{ repo_name }}{% raw %}.svg)](https://isitmaintained.com/project/{% endraw %}{{ repo_org_name }}/{{ repo_name }}{% raw %}){% endraw %}{% endif %}{% raw %}

# Usage
Documentation is hosted on [ReadTheDocs](https://{% endraw %}{{ package_name }}{% raw %}.readthedocs.io/en/latest/?badge=latest).
Expand Down
1 change: 1 addition & 0 deletions tests/copier_data/data2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ aws_region_for_stack: us-west-1
python_ci_versions:
- "3.12.7"
- "3.13.2"
- "3.14.0"
package_name: the-amazing-library
primary_author: John Williams
full_repo_url: https://www.github.com/baz
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.