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 .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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): b00e583e # 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 @@ -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"
Expand Down
35 changes: 18 additions & 17 deletions extensions/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,37 @@ 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"
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"
context["pulumi_version"] = "3.208.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["pydantic_version"] = "2.12.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"
context["strawberry_graphql_version"] = ">=0.287.0"
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"
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies = [
"pytest-cov>=7.0.0",
"pytest-randomly>=4.0.1",
"pyright[nodejs]>=1.1.407",
"copier>=9.11.0",
"copier-template-extensions>=0.3.3"
"ty>=0.0.2",
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Update dependency constraint to match current stable release.

ty is an extremely fast Python type checker and language server written in Rust, backed by Astral, the creators of uv and Ruff. The constraint should be >=0.0.2 (not >=0.0.2) as 0.0.2 is the beta release, making it the current stable version. However, note that ty is a preview release with missing features and known issues that shouldn't be used in production yet.

🤖 Prompt for AI Agents
In pyproject.toml around line 12 replace the existing ty dependency constraint
with the stable-preview constraint "ty>=0.0.2" (ensure the entry matches the
project’s dependency syntax exactly), updating the version string on that line;
leave a comment or note elsewhere in the file that ty is a preview release and
should not be used in production.

"copier==9.11.0",
"copier-template-extensions==0.3.3"
]
4 changes: 2 additions & 2 deletions template/.devcontainer/install-ci-tooling.py.jinja-base
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions template/extensions/context.py.jinja-base
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
16 changes: 8 additions & 8 deletions template/pyproject.toml.jinja-base
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ description = "{% endraw %}{{ description }}{% raw %}"
readme = "README.md"
requires-python = ">={% endraw %}{{ python_version }}{% raw %}"
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 %}",
"copier>={% endraw %}{{ copier_version }}{% raw %}",
"copier-template-extensions>={% endraw %}{{ copier_template_extensions_version }}{% raw %}"

# 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 %}"
]{% endraw %}
1 change: 1 addition & 0 deletions template/template/ty.toml
1 change: 1 addition & 0 deletions template/ty.toml
18 changes: 18 additions & 0 deletions ty.toml
Original file line number Diff line number Diff line change
@@ -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"
]
31 changes: 29 additions & 2 deletions uv.lock

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