From a238b1988376443a39e29da0e481f35317941d23 Mon Sep 17 00:00:00 2001 From: Eli Fine Date: Wed, 17 Dec 2025 10:44:23 +0000 Subject: [PATCH 1/7] more ty --- .devcontainer/devcontainer.json | 2 +- extensions/context.py | 1 + pyproject.toml | 1 + template/extensions/context.py.jinja-base | 1 + template/pyproject.toml.jinja-base | 8 +++---- template/template/ty.toml | 1 + template/ty.toml | 1 + ty.toml | 18 +++++++++++++++ uv.lock | 27 +++++++++++++++++++++++ 9 files changed, 55 insertions(+), 5 deletions(-) create mode 120000 template/template/ty.toml create mode 120000 template/ty.toml create mode 100644 ty.toml diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3f826879..e8347d40 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -62,5 +62,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): 5b56d8b0 # spellchecker:disable-line + // Devcontainer context hash (do not manually edit this, it's managed by a pre-commit hook): dc96583f # spellchecker:disable-line } diff --git a/extensions/context.py b/extensions/context.py index 61470e10..47a97433 100644 --- a/extensions/context.py +++ b/extensions/context.py @@ -23,6 +23,7 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]: context["pytest_version"] = "9.0.2" context["pytest_randomly_version"] = "4.0.1" context["pytest_cov_version"] = "7.0.0" + context["ty_version"] = "0.0.2" ####### context["sphinx_version"] = "9.0.4" context["pulumi_version"] = "3.208.0" diff --git a/pyproject.toml b/pyproject.toml index 55d0c0fc..31373529 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,6 +9,7 @@ dependencies = [ "pytest-cov>=7.0.0", "pytest-randomly>=4.0.1", "pyright[nodejs]>=1.1.407", + "ty>=0.0.2", "copier>=9.11.0", "copier-template-extensions>=0.3.3" ] diff --git a/template/extensions/context.py.jinja-base b/template/extensions/context.py.jinja-base index 65a5af4c..e86cecfe 100644 --- a/template/extensions/context.py.jinja-base +++ b/template/extensions/context.py.jinja-base @@ -17,6 +17,7 @@ class ContextUpdater(ContextHook): context["pytest_version"] = "{{ pytest_version }}" context["pytest_randomly_version"] = "{{ pytest_randomly_version }}" context["pytest_cov_version"] = "{{ pytest_cov_version }}" + context["ty_version"] = "{{ ty_version }}" context["copier_version"] = "{{ copier_version }}" context["copier_template_extensions_version"] = "{{ copier_template_extensions_version }}" context["sphinx_version"] = "{{ sphinx_version }}" diff --git a/template/pyproject.toml.jinja-base b/template/pyproject.toml.jinja-base index 163db50e..1ca51e61 100644 --- a/template/pyproject.toml.jinja-base +++ b/template/pyproject.toml.jinja-base @@ -5,15 +5,15 @@ description = "{% endraw %}{{ description }}{% raw %}" readme = "README.md" requires-python = ">={% endraw %}{{ python_version }}{% raw %}" dependencies = [ + # Specific to this template + + # Managed by upstream template "pytest>={% endraw %}{{ pytest_version }}{% raw %}", "pytest-cov>={% endraw %}{{ pytest_cov_version }}{% raw %}", "pytest-randomly>={% endraw %}{{ pytest_randomly_version }}{% raw %}", "pyright[nodejs]>={% endraw %}{{ pyright_version }}{% raw %}", + "ty>={% endraw %}{{ ty_version }}{% raw %}", "copier>={% endraw %}{{ copier_version }}{% raw %}", "copier-template-extensions>={% endraw %}{{ copier_template_extensions_version }}{% raw %}" - - # Specific to this template - - ]{% endraw %} diff --git a/template/template/ty.toml b/template/template/ty.toml new file mode 120000 index 00000000..44d67db4 --- /dev/null +++ b/template/template/ty.toml @@ -0,0 +1 @@ +../../ty.toml \ No newline at end of file diff --git a/template/ty.toml b/template/ty.toml new file mode 120000 index 00000000..8caef6a9 --- /dev/null +++ b/template/ty.toml @@ -0,0 +1 @@ +../ty.toml \ No newline at end of file diff --git a/ty.toml b/ty.toml new file mode 100644 index 00000000..45ec6841 --- /dev/null +++ b/ty.toml @@ -0,0 +1,18 @@ +[src] +exclude = [ + # excludes managed by this repository + + # excludes managed by template + "**/node_modules", + "**/.precommit_cache", + "**/.ruff_cache", + "**/.npm_cache", + "**/.pipx_cache", + "**/__pycache__", + "**/vendor_files", + "**/generated/graphql", + "**/generated/open_api", + "**/.venv", + "**/venv", + "**/copier_template_resources" +] diff --git a/uv.lock b/uv.lock index 52c915b8..cc921328 100644 --- a/uv.lock +++ b/uv.lock @@ -55,6 +55,7 @@ dependencies = [ { name = "pytest" }, { name = "pytest-cov" }, { name = "pytest-randomly" }, + { name = "ty" }, ] [package.metadata] @@ -65,6 +66,7 @@ requires-dist = [ { name = "pytest", specifier = ">=9.0.2" }, { name = "pytest-cov", specifier = ">=7.0.0" }, { name = "pytest-randomly", specifier = ">=4.0.1" }, + { name = "ty", specifier = ">=0.0.2" }, ] [[package]] @@ -493,6 +495,31 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/0b/e7/2dd8f59d1d328773505f78b85405ddb1cfe74126425d076ce72e65540b8b/questionary-2.0.1-py3-none-any.whl", hash = "sha256:8ab9a01d0b91b68444dff7f6652c1e754105533f083cbe27597c8110ecc230a2", size = 34248, upload-time = "2023-09-08T12:19:01.612Z" }, ] +[[package]] +name = "ty" +version = "0.0.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/47/e5/15b6aceefcd64b53997fe2002b6fa055f0b1afd23ff6fc3f55f3da944530/ty-0.0.2.tar.gz", hash = "sha256:e02dc50b65dc58d6cb8e8b0d563833f81bf03ed8a7d0b15c6396d486489a7e1d", size = 4762024, upload-time = "2025-12-16T20:13:41.07Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6b/86/65d4826677d966cf226662767a4a597ebb4b02c432f413673c8d5d3d1ce8/ty-0.0.2-py3-none-linux_armv6l.whl", hash = "sha256:0954a0e0b6f7e06229dd1da3a9989ee9b881a26047139a88eb7c134c585ad22e", size = 9771409, upload-time = "2025-12-16T20:13:28.964Z" }, + { url = "https://files.pythonhosted.org/packages/d4/bc/6ab06b7c109cec608c24ea182cc8b4714e746a132f70149b759817092665/ty-0.0.2-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:d6044b491d66933547033cecc87cb7eb599ba026a3ef347285add6b21107a648", size = 9580025, upload-time = "2025-12-16T20:13:34.507Z" }, + { url = "https://files.pythonhosted.org/packages/54/de/d826804e304b2430f17bb27ae15bcf02380e7f67f38b5033047e3d2523e6/ty-0.0.2-py3-none-macosx_11_0_arm64.whl", hash = "sha256:fbca7f08e671a35229f6f400d73da92e2dc0a440fba53a74fe8233079a504358", size = 9098660, upload-time = "2025-12-16T20:13:01.278Z" }, + { url = "https://files.pythonhosted.org/packages/b7/8e/5cd87944ceee02bb0826f19ced54e30c6bb971e985a22768f6be6b1a042f/ty-0.0.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3abd61153dac0b93b284d305e6f96085013a25c3a7ab44e988d24f0a5fcce729", size = 9567693, upload-time = "2025-12-16T20:13:12.559Z" }, + { url = "https://files.pythonhosted.org/packages/c6/b1/062aab2c62c5ae01c05d27b97ba022d9ff66f14a3cb9030c5ad1dca797ec/ty-0.0.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:21a9f28caafb5742e7d594104e2fe2ebd64590da31aed4745ae8bc5be67a7b85", size = 9556471, upload-time = "2025-12-16T20:13:07.771Z" }, + { url = "https://files.pythonhosted.org/packages/0e/07/856f6647a9dd6e36560d182d35d3b5fb21eae98a8bfb516cd879d0e509f3/ty-0.0.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d3ec63fd23ab48e0f838fb54a47ec362a972ee80979169a7edfa6f5c5034849d", size = 9971914, upload-time = "2025-12-16T20:13:18.852Z" }, + { url = "https://files.pythonhosted.org/packages/2e/82/c2e3957dbf33a23f793a9239cfd8bd04b6defd999bd0f6e74d6a5afb9f42/ty-0.0.2-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:e5e2e0293a259c9a53f668c9c13153cc2f1403cb0fe2b886ca054be4ac76517c", size = 10840905, upload-time = "2025-12-16T20:13:37.098Z" }, + { url = "https://files.pythonhosted.org/packages/3b/17/49bd74e3d577e6c88b8074581b7382f532a9d40552cc7c48ceaa83f1d950/ty-0.0.2-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fd2511ac02a83d0dc45d4570c7e21ec0c919be7a7263bad9914800d0cde47817", size = 10570251, upload-time = "2025-12-16T20:13:10.319Z" }, + { url = "https://files.pythonhosted.org/packages/2b/9b/26741834069722033a1a0963fcbb63ea45925c6697357e64e361753c6166/ty-0.0.2-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c482bfbfb8ad18b2e62427d02a0c934ac510c414188a3cf00e16b8acc35482f0", size = 10369078, upload-time = "2025-12-16T20:13:20.851Z" }, + { url = "https://files.pythonhosted.org/packages/94/fc/1d34ec891900d9337169ff9f8252fcaa633ae5c4d36b67effd849ed4f9ac/ty-0.0.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eb514711eed3f56d7a130d4885f4b5d8e490fdcd2adac098e5cf175573a0dda3", size = 10121064, upload-time = "2025-12-16T20:13:23.095Z" }, + { url = "https://files.pythonhosted.org/packages/e5/02/e640325956172355ef8deb9b08d991f229230bf9d07f1dbda8c6665a3a43/ty-0.0.2-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:b2c37fa26c39e9fbed7c73645ba721968ab44f28b2bfe2f79a4e15965a1c426f", size = 9553817, upload-time = "2025-12-16T20:13:27.057Z" }, + { url = "https://files.pythonhosted.org/packages/35/13/c93d579ece84895da9b0aae5d34d84100bbff63ad9f60c906a533a087175/ty-0.0.2-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:13b264833ac5f3b214693fca38e380e78ee7327e09beaa5ff2e47d75fcab9692", size = 9577512, upload-time = "2025-12-16T20:13:16.956Z" }, + { url = "https://files.pythonhosted.org/packages/85/53/93ab1570adc799cd9120ea187d5b4c00d821e86eca069943b179fe0d3e83/ty-0.0.2-py3-none-musllinux_1_2_i686.whl", hash = "sha256:08658d6dbbf8bdef80c0a77eda56a22ab6737002ba129301b7bbd36bcb7acd75", size = 9692726, upload-time = "2025-12-16T20:13:31.169Z" }, + { url = "https://files.pythonhosted.org/packages/9a/07/5fff5335858a14196776207d231c32e23e48a5c912a7d52c80e7a3fa6f8f/ty-0.0.2-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:4a21b5b012061cb13d47edfff6be70052694308dba633b4c819b70f840e6c158", size = 10213996, upload-time = "2025-12-16T20:13:14.606Z" }, + { url = "https://files.pythonhosted.org/packages/a0/d3/896b1439ab765c57a8d732f73c105ec41142c417a582600638385c2bee85/ty-0.0.2-py3-none-win32.whl", hash = "sha256:d773fdad5d2b30f26313204e6b191cdd2f41ab440a6c241fdb444f8c6593c288", size = 9204906, upload-time = "2025-12-16T20:13:25.099Z" }, + { url = "https://files.pythonhosted.org/packages/5d/0a/f30981e7d637f78e3d08e77d63b818752d23db1bc4b66f9e82e2cb3d34f8/ty-0.0.2-py3-none-win_amd64.whl", hash = "sha256:d1c9ac78a8aa60d0ce89acdccf56c3cc0fcb2de07f1ecf313754d83518e8e8c5", size = 10066640, upload-time = "2025-12-16T20:13:04.045Z" }, + { url = "https://files.pythonhosted.org/packages/5a/c4/97958503cf62bfb7908d2a77b03b91a20499a7ff405f5a098c4989589f34/ty-0.0.2-py3-none-win_arm64.whl", hash = "sha256:fbdef644ade0cd4420c4ec14b604b7894cefe77bfd8659686ac2f6aba9d1a306", size = 9572022, upload-time = "2025-12-16T20:13:39.189Z" }, +] + [[package]] name = "typing-extensions" version = "4.12.2" From 9c91a25ebfa06879177c0485cb10b15e7fdebae5 Mon Sep 17 00:00:00 2001 From: Eli Fine Date: Wed, 17 Dec 2025 10:45:45 +0000 Subject: [PATCH 2/7] pulumi --- extensions/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/context.py b/extensions/context.py index 47a97433..47408f99 100644 --- a/extensions/context.py +++ b/extensions/context.py @@ -26,7 +26,7 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]: context["ty_version"] = "0.0.2" ####### context["sphinx_version"] = "9.0.4" - context["pulumi_version"] = "3.208.0" + context["pulumi_version"] = "3.212.0" context["pulumi_aws_version"] = "7.12.0" context["pulumi_aws_native_version"] = "1.38.0" context["pulumi_command_version"] = "1.1.3" From 6d08665950e30c453362b5c0865d33873db9fd30 Mon Sep 17 00:00:00 2001 From: Eli Fine Date: Wed, 17 Dec 2025 10:48:10 +0000 Subject: [PATCH 3/7] more pulumi --- extensions/context.py | 20 ++++++++++---------- template/pyproject.toml.jinja-base | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/extensions/context.py b/extensions/context.py index 47408f99..152fc071 100644 --- a/extensions/context.py +++ b/extensions/context.py @@ -23,17 +23,17 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]: context["pytest_version"] = "9.0.2" context["pytest_randomly_version"] = "4.0.1" context["pytest_cov_version"] = "7.0.0" - context["ty_version"] = "0.0.2" + context["ty_version"] = ">=0.0.2" ####### context["sphinx_version"] = "9.0.4" - context["pulumi_version"] = "3.212.0" - context["pulumi_aws_version"] = "7.12.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" - context["boto3_version"] = "1.41.2" - context["ephemeral_pulumi_deploy_version"] = "0.0.5" + context["pulumi_version"] = ">=3.212.0" + context["pulumi_aws_version"] = ">=7.14.0" + context["pulumi_aws_native_version"] = ">=1.40.0" + context["pulumi_command_version"] = ">=1.1.3" + context["pulumi_github_version"] = ">=6.9.1" + context["pulumi_okta_version"] = ">=6.2.0" + context["boto3_version"] = ">=1.42.11" + context["ephemeral_pulumi_deploy_version"] = ">=0.0.5" context["pydantic_version"] = "2.12.5" context["pyinstaller_version"] = "6.17.0" context["setuptools_version"] = "80.7.1" @@ -41,7 +41,7 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]: context["fastapi_version"] = ">=0.124.2" context["fastapi_offline_version"] = ">=1.7.4" context["uvicorn_version"] = ">=0.38.0" - context["lab_auto_pulumi_version"] = "0.1.17" + context["lab_auto_pulumi_version"] = ">=0.1.17" context["ariadne_codegen_version"] = ">=0.17.0" context["pytest_mock_version"] = "3.15.1" context["uuid_utils_version"] = ">=0.12.0" diff --git a/template/pyproject.toml.jinja-base b/template/pyproject.toml.jinja-base index 1ca51e61..6ca668e6 100644 --- a/template/pyproject.toml.jinja-base +++ b/template/pyproject.toml.jinja-base @@ -13,7 +13,7 @@ dependencies = [ "pytest-cov>={% endraw %}{{ pytest_cov_version }}{% raw %}", "pytest-randomly>={% endraw %}{{ pytest_randomly_version }}{% raw %}", "pyright[nodejs]>={% endraw %}{{ pyright_version }}{% raw %}", - "ty>={% endraw %}{{ ty_version }}{% raw %}", + "ty{% endraw %}{{ ty_version }}{% raw %}", "copier>={% endraw %}{{ copier_version }}{% raw %}", "copier-template-extensions>={% endraw %}{{ copier_template_extensions_version }}{% raw %}" ]{% endraw %} From 36df31cfb828b6c598cd105af9a6e16e12a772ff Mon Sep 17 00:00:00 2001 From: Eli Fine Date: Wed, 17 Dec 2025 10:49:03 +0000 Subject: [PATCH 4/7] ge --- extensions/context.py | 12 ++++++------ template/pyproject.toml.jinja-base | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/extensions/context.py b/extensions/context.py index 152fc071..8f64a979 100644 --- a/extensions/context.py +++ b/extensions/context.py @@ -14,15 +14,15 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]: context["uv_version"] = "0.9.17" context["pre_commit_version"] = "4.5.0" # These also in pyproject.toml - context["copier_version"] = "9.11.0" - context["copier_template_extensions_version"] = "0.3.3" + context["copier_version"] = ">=9.11.0" + context["copier_template_extensions_version"] = ">=0.3.3" ####### context["pnpm_version"] = "10.25.0" # These are duplicated in the pyproject.toml of this repository - context["pyright_version"] = "1.1.407" - context["pytest_version"] = "9.0.2" - context["pytest_randomly_version"] = "4.0.1" - context["pytest_cov_version"] = "7.0.0" + context["pyright_version"] = ">=1.1.407" + context["pytest_version"] = ">=9.0.2" + context["pytest_randomly_version"] = ">=4.0.1" + context["pytest_cov_version"] = ">=7.0.0" context["ty_version"] = ">=0.0.2" ####### context["sphinx_version"] = "9.0.4" diff --git a/template/pyproject.toml.jinja-base b/template/pyproject.toml.jinja-base index 6ca668e6..2abbf0c4 100644 --- a/template/pyproject.toml.jinja-base +++ b/template/pyproject.toml.jinja-base @@ -9,11 +9,11 @@ dependencies = [ # Managed by upstream template - "pytest>={% endraw %}{{ pytest_version }}{% raw %}", - "pytest-cov>={% endraw %}{{ pytest_cov_version }}{% raw %}", - "pytest-randomly>={% endraw %}{{ pytest_randomly_version }}{% raw %}", - "pyright[nodejs]>={% endraw %}{{ pyright_version }}{% raw %}", + "pytest{% endraw %}{{ pytest_version }}{% raw %}", + "pytest-cov{% endraw %}{{ pytest_cov_version }}{% raw %}", + "pytest-randomly{% endraw %}{{ pytest_randomly_version }}{% raw %}", + "pyright[nodejs]{% endraw %}{{ pyright_version }}{% raw %}", "ty{% endraw %}{{ ty_version }}{% raw %}", - "copier>={% endraw %}{{ copier_version }}{% raw %}", - "copier-template-extensions>={% endraw %}{{ copier_template_extensions_version }}{% raw %}" + "copier{% endraw %}{{ copier_version }}{% raw %}", + "copier-template-extensions{% endraw %}{{ copier_template_extensions_version }}{% raw %}" ]{% endraw %} From fb9c81f3756a504d62965856367fa2c838f05b6d Mon Sep 17 00:00:00 2001 From: Eli Fine Date: Wed, 17 Dec 2025 10:51:41 +0000 Subject: [PATCH 5/7] pydantic --- extensions/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/context.py b/extensions/context.py index 8f64a979..305aa6a0 100644 --- a/extensions/context.py +++ b/extensions/context.py @@ -34,7 +34,7 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]: context["pulumi_okta_version"] = ">=6.2.0" context["boto3_version"] = ">=1.42.11" context["ephemeral_pulumi_deploy_version"] = ">=0.0.5" - context["pydantic_version"] = "2.12.5" + context["pydantic_version"] = ">=2.12.5" context["pyinstaller_version"] = "6.17.0" context["setuptools_version"] = "80.7.1" context["strawberry_graphql_version"] = ">=0.287.0" From cfb1414b7b5794db53a82b3ba270f57c7329bd55 Mon Sep 17 00:00:00 2001 From: Eli Fine Date: Wed, 17 Dec 2025 11:01:59 +0000 Subject: [PATCH 6/7] tooling --- extensions/context.py | 4 ++-- template/.devcontainer/install-ci-tooling.py.jinja-base | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/context.py b/extensions/context.py index 305aa6a0..e2ace730 100644 --- a/extensions/context.py +++ b/extensions/context.py @@ -14,8 +14,8 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]: context["uv_version"] = "0.9.17" context["pre_commit_version"] = "4.5.0" # These also in pyproject.toml - context["copier_version"] = ">=9.11.0" - context["copier_template_extensions_version"] = ">=0.3.3" + context["copier_version"] = "==9.11.0" + context["copier_template_extensions_version"] = "==0.3.3" ####### context["pnpm_version"] = "10.25.0" # These are duplicated in the pyproject.toml of this repository diff --git a/template/.devcontainer/install-ci-tooling.py.jinja-base b/template/.devcontainer/install-ci-tooling.py.jinja-base index d0e4d0db..fdadcec7 100644 --- a/template/.devcontainer/install-ci-tooling.py.jinja-base +++ b/template/.devcontainer/install-ci-tooling.py.jinja-base @@ -76,9 +76,9 @@ def main(): uv_path, "tool", "install", - f"copier=={COPIER_VERSION}", + f"copier{COPIER_VERSION}", "--with", - f"copier-template-extensions=={COPIER_TEMPLATE_EXTENSIONS_VERSION}", + f"copier-template-extensions{COPIER_TEMPLATE_EXTENSIONS_VERSION}", ], check=True, env=uv_env, From 161d4e8659bc802db2e73b96ba0193b187c6c795 Mon Sep 17 00:00:00 2001 From: Eli Fine Date: Wed, 17 Dec 2025 11:24:56 +0000 Subject: [PATCH 7/7] uv --- .devcontainer/devcontainer.json | 2 +- .devcontainer/install-ci-tooling.py | 2 +- extensions/context.py | 2 +- pyproject.toml | 4 ++-- uv.lock | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e8347d40..36c4e5aa 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -62,5 +62,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): dc96583f # spellchecker:disable-line + // Devcontainer context hash (do not manually edit this, it's managed by a pre-commit hook): b00e583e # spellchecker:disable-line } diff --git a/.devcontainer/install-ci-tooling.py b/.devcontainer/install-ci-tooling.py index e28b2b16..fcad525a 100644 --- a/.devcontainer/install-ci-tooling.py +++ b/.devcontainer/install-ci-tooling.py @@ -5,7 +5,7 @@ import subprocess import sys -UV_VERSION = "0.9.17" +UV_VERSION = "0.9.18" COPIER_VERSION = "9.11.0" COPIER_TEMPLATE_EXTENSIONS_VERSION = "0.3.3" PRE_COMMIT_VERSION = "4.5.0" diff --git a/extensions/context.py b/extensions/context.py index e2ace730..48f363d1 100644 --- a/extensions/context.py +++ b/extensions/context.py @@ -11,7 +11,7 @@ class ContextUpdater(ContextHook): @override def hook(self, context: dict[Any, Any]) -> dict[Any, Any]: # These are duplicated in the install-ci-tooling.py script in this repository - context["uv_version"] = "0.9.17" + context["uv_version"] = "0.9.18" context["pre_commit_version"] = "4.5.0" # These also in pyproject.toml context["copier_version"] = "==9.11.0" diff --git a/pyproject.toml b/pyproject.toml index 31373529..982d36e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,6 +10,6 @@ dependencies = [ "pytest-randomly>=4.0.1", "pyright[nodejs]>=1.1.407", "ty>=0.0.2", - "copier>=9.11.0", - "copier-template-extensions>=0.3.3" + "copier==9.11.0", + "copier-template-extensions==0.3.3" ] diff --git a/uv.lock b/uv.lock index cc921328..b941ccd7 100644 --- a/uv.lock +++ b/uv.lock @@ -60,8 +60,8 @@ dependencies = [ [package.metadata] requires-dist = [ - { name = "copier", specifier = ">=9.11.0" }, - { name = "copier-template-extensions", specifier = ">=0.3.3" }, + { name = "copier", specifier = "==9.11.0" }, + { name = "copier-template-extensions", specifier = "==0.3.3" }, { name = "pyright", extras = ["nodejs"], specifier = ">=1.1.407" }, { name = "pytest", specifier = ">=9.0.2" }, { name = "pytest-cov", specifier = ">=7.0.0" },