diff --git a/.coveragerc b/.coveragerc index 7ee237b3..5f9051a8 100644 --- a/.coveragerc +++ b/.coveragerc @@ -5,6 +5,9 @@ omit = */vendor_files/* # omit any auto-generated API client code */generated/open_api/* + # omit CircuitPython firmware + */firmware/code.py + */firmware/boot.py [report] # Regexes for lines to exclude from consideration diff --git a/extensions/context.py b/extensions/context.py index 242d20dd..97cd8c43 100644 --- a/extensions/context.py +++ b/extensions/context.py @@ -36,7 +36,7 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]: context["pydantic_version"] = "2.12.4" context["pyinstaller_version"] = "6.16.0" context["setuptools_version"] = "80.7.1" - context["strawberry_graphql_version"] = "0.284.1" + context["strawberry_graphql_version"] = "0.287.0" context["fastapi_version"] = "0.121.0" context["fastapi_offline_version"] = "1.7.4" context["uvicorn_version"] = "0.38.0" @@ -50,7 +50,7 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]: context["python_kiota_bundle_version"] = "1.9.7" ####### context["node_version"] = "24.7.0" - context["nuxt_ui_version"] = "^4.1.0" + context["nuxt_ui_version"] = "^4.2.1" context["nuxt_version"] = "^4.2.0" context["nuxt_icon_version"] = "^2.1.0" context["typescript_version"] = "^5.9.3" @@ -66,7 +66,7 @@ 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.10.0" + context["types_node_version"] = "^24.10.1" 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" @@ -110,6 +110,8 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]: context["debian_release_name"] = "bookworm" context["alpine_image_version"] = "3.22" context["nginx_image_version"] = "1.29.1" + ####### + context["kiota_cli_version"] = "1.29.0" # These also in the tests/data.yml files in this repository and in copier.yaml context["py312_version"] = "3.12.7" # ReadTheDocs does not yet support 3.12.8 context["py313_version"] = "3.13.2" diff --git a/template/.github/reusable_workflows/build-docker-image.yaml.jinja-base b/template/.github/reusable_workflows/build-docker-image.yaml.jinja-base index 9745af5a..895b11d3 100644 --- a/template/.github/reusable_workflows/build-docker-image.yaml.jinja-base +++ b/template/.github/reusable_workflows/build-docker-image.yaml.jinja-base @@ -95,7 +95,7 @@ jobs: uses: ben-z/gh-action-mutex@{% endraw %}{{ gha_mutex }}{% raw %} with: branch: mutex-${{ inputs.repository }}-${{ inputs.image_name }} - timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %} # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it + timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %} # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it - name: Test if docker image exists if: ${{ inputs.push-role-name != 'no-push' }} diff --git a/template/.github/workflows/ci.yaml.jinja-base b/template/.github/workflows/ci.yaml.jinja-base index f092d914..9432d668 100644 --- a/template/.github/workflows/ci.yaml.jinja-base +++ b/template/.github/workflows/ci.yaml.jinja-base @@ -106,7 +106,7 @@ jobs: uses: ben-z/gh-action-mutex@{% endraw %}{{ gha_mutex }}{% raw %} with: branch: mutex-venv-${{ matrix.os }}-${{ matrix.python-version }} - timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %} # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it + timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %} # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it - name: Cache Pre-commit hooks uses: actions/cache@{% endraw %}{{ gha_cache }}{% raw %} diff --git a/template/.github/workflows/pre-commit.yaml.jinja-base b/template/.github/workflows/pre-commit.yaml.jinja-base index 74a47fa2..5fb0cf11 100644 --- a/template/.github/workflows/pre-commit.yaml.jinja-base +++ b/template/.github/workflows/pre-commit.yaml.jinja-base @@ -56,7 +56,7 @@ jobs: uses: ben-z/gh-action-mutex@{% endraw %}{{ gha_mutex }}{% raw %} with: branch: mutex-venv-{% endraw %}{{ gha_linux_runner }}{% raw %}-py${{ inputs.python-version }}-nodejs-${{ inputs.node-version }} - timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %} # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it + timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %} # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it - name: Cache Pre-commit hooks uses: actions/cache@{% endraw %}{{ gha_cache }}{% raw %} diff --git a/template/README.md.jinja-base b/template/README.md.jinja-base index ad5f775a..7b3fb3bf 100644 --- a/template/README.md.jinja-base +++ b/template/README.md.jinja-base @@ -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/{% endraw %}{{ repo_org_name }}/{{ repo_name }}{% raw %}/actions/workflows/ci.yaml/badge.svg?branch=main)](https://www.github.com/{% endraw %}{{ repo_org_name }}/{{ repo_name }}{% raw %}/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/{% endraw %}{{ repo_org_name }}/{{ repo_name }}{% raw %}) -[![OpenIssues](http://isitmaintained.com/badge/open/{% endraw %}{{ repo_org_name }}/{{ repo_name }}{% raw %}.svg)](http://isitmaintained.com/project/{% endraw %}{{ repo_org_name }}/{{ repo_name }}{% 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 %}) # Usage To create a new repository using this template: diff --git a/template/extensions/context.py.jinja-base b/template/extensions/context.py.jinja-base index 76c335c7..f4085b16 100644 --- a/template/extensions/context.py.jinja-base +++ b/template/extensions/context.py.jinja-base @@ -100,14 +100,16 @@ class ContextUpdater(ContextHook): context["gha_long_timeout_minutes"] = "{{ gha_long_timeout_minutes }}" context["gha_xlong_timeout_minutes"] = "{{ gha_xlong_timeout_minutes }}" - context["py312_version"] = "{{ py312_version }}" - context["py313_version"] = "{{ py313_version }}" - context["py314_version"] = "{{ py314_version }}" - context["debian_release_name"] = "{{ debian_release_name }}" context["alpine_image_version"] = "{{ alpine_image_version }}" context["nginx_image_version"] = "{{ nginx_image_version }}" + context["kiota_cli_version"] = "{{ kiota_cli_version }}" + + context["py312_version"] = "{{ py312_version }}" + context["py313_version"] = "{{ py313_version }}" + context["py314_version"] = "{{ py314_version }}" + # Kludge to be able to help symlinked jinja files in the child and grandchild templates context["template_uses_vuejs"] = {{ "True" if template_uses_vuejs else "False" }} context["template_uses_javascript"] = {{ "True" if template_uses_javascript else "False" }} diff --git a/template/template/.github/workflows/{% if template_uses_pulumi %}pulumi-aws.yml{% endif %}.jinja-base b/template/template/.github/workflows/{% if template_uses_pulumi %}pulumi-aws.yml{% endif %}.jinja-base index 0f3c3c25..480ebf59 100644 --- a/template/template/.github/workflows/{% if template_uses_pulumi %}pulumi-aws.yml{% endif %}.jinja-base +++ b/template/template/.github/workflows/{% if template_uses_pulumi %}pulumi-aws.yml{% endif %}.jinja-base @@ -111,7 +111,7 @@ jobs: uses: ben-z/gh-action-mutex@{% endraw %}{{ gha_mutex }}{% raw %} with: branch: mutex-pulumi-${{ inputs.PULUMI_STACK_NAME }}-${{ inputs.ADDITIONAL_MUTEX_SUFFIX }} - timeout-minutes: {% endraw %}{{ gha_long_timeout_minutes }}{% raw %} # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it + timeout-minutes: {% endraw %}{{ gha_long_timeout_minutes }}{% raw %} # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it - name: Pulumi Initial Destroy to cleanup any leftovers uses: ./.github/actions/pulumi_ephemeral_deploy