Skip to content

Commit 5882376

Browse files
authored
Copier update (fix get values CI job) (#72)
Pull in upstream template changes
1 parent ad7c56b commit 5882376

File tree

10 files changed

+37
-23
lines changed

10 files changed

+37
-23
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: v0.0.73
2+
_commit: v0.0.74
33
_src_path: gh:LabAutomationAndScreening/copier-base-template.git
44
description: Copier template for creating Python libraries and executables
55
python_ci_versions:

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@
6161
"initializeCommand": "sh .devcontainer/initialize-command.sh",
6262
"onCreateCommand": "sh .devcontainer/on-create-command.sh",
6363
"postStartCommand": "sh .devcontainer/post-start-command.sh"
64-
// Devcontainer context hash (do not manually edit this, it's managed by a pre-commit hook): a57008fa # spellchecker:disable-line
64+
// Devcontainer context hash (do not manually edit this, it's managed by a pre-commit hook): 735908f4 # spellchecker:disable-line
6565
}

.devcontainer/install-ci-tooling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import tempfile
88
from pathlib import Path
99

10-
UV_VERSION = "0.8.19"
10+
UV_VERSION = "0.8.22"
1111
PNPM_VERSION = "10.17.1"
1212
COPIER_VERSION = "9.10.2"
1313
COPIER_TEMPLATE_EXTENSIONS_VERSION = "0.3.3"

.github/workflows/get-values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ jobs:
2525
pr-short-num: ${{ steps.find-pr-num.outputs.number }}
2626
steps:
2727
- name: Display full GitHub context
28-
run: echo '${{ toJSON(github) }}'
28+
run: |
29+
jq . <<'JSON'
30+
${{ toJSON(github) }}
31+
JSON
2932
3033
- name: Checkout code
3134
uses: actions/[email protected]

extensions/context.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ContextUpdater(ContextHook):
1010

1111
@override
1212
def hook(self, context: dict[Any, Any]) -> dict[Any, Any]:
13-
context["uv_version"] = "0.8.19"
13+
context["uv_version"] = "0.8.22"
1414
context["pnpm_version"] = "10.17.1"
1515
context["pre_commit_version"] = "4.3.0"
1616
context["pyright_version"] = "1.1.405"
@@ -26,38 +26,38 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]:
2626
context["pulumi_command_version"] = "1.1.0"
2727
context["pulumi_github_version"] = "6.7.3"
2828
context["pulumi_okta_version"] = "5.2.0"
29-
context["boto3_version"] = "1.40.30"
29+
context["boto3_version"] = "1.40.41"
3030
context["ephemeral_pulumi_deploy_version"] = "0.0.5"
3131
context["pydantic_version"] = "2.11.7"
3232
context["pyinstaller_version"] = "6.16.0"
3333
context["setuptools_version"] = "80.7.1"
3434
context["strawberry_graphql_version"] = "0.282.0"
35-
context["fastapi_version"] = "0.117.1"
35+
context["fastapi_version"] = "0.118.0"
3636
context["fastapi_offline_version"] = "1.7.4"
37-
context["uvicorn_version"] = "0.36.0"
37+
context["uvicorn_version"] = "0.37.0"
3838
context["lab_auto_pulumi_version"] = "0.1.16"
3939
context["ariadne_codegen_version"] = "0.15.2"
4040
context["pytest_mock_version"] = "3.15.0"
4141
context["uuid_utils_version"] = "0.11.0"
4242

4343
context["node_version"] = "24.7.0"
44-
context["nuxt_ui_version"] = "^3.3.3"
44+
context["nuxt_ui_version"] = "^4.0.0"
4545
context["nuxt_version"] = "^4.1.0"
4646
context["nuxt_icon_version"] = "^2.0.0"
4747
context["typescript_version"] = "^5.8.2"
4848
context["playwright_version"] = "^1.55.0"
4949
context["vue_version"] = "^3.5.21"
50-
context["vue_tsc_version"] = "^3.0.6"
50+
context["vue_tsc_version"] = "^3.1.0"
5151
context["vue_devtools_api_version"] = "^8.0.0"
5252
context["vue_router_version"] = "^4.5.1"
5353
context["dotenv_cli_version"] = "^10.0.0"
5454
context["faker_version"] = "^10.0.0"
5555
context["vitest_version"] = "^3.2.4"
56-
context["eslint_version"] = "^9.35.0"
56+
context["eslint_version"] = "^9.36.0"
5757
context["nuxt_eslint_version"] = "^1.9.0"
5858
context["zod_version"] = "^4.1.5"
5959
context["zod_from_json_schema_version"] = "^0.5.0"
60-
context["types_node_version"] = "^24.5.1"
60+
context["types_node_version"] = "^24.6.0"
6161
context["nuxt_apollo_version"] = "5.0.0-alpha.15"
6262
context["graphql_codegen_cli_version"] = "^6.0.0"
6363
context["graphql_codegen_typescript_version"] = "^5.0.0"

ruff-test.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,9 @@ ignore = [
1515
"TRY003", # tests dont need to create a custom exception classes, generally you want to throw an AssertionError with a message anyway
1616
]
1717

18+
unfixable = [
19+
"SIM117", # pytest.raises context managers should generally be separate from others so they can be very specific about where the error is being raised from, so don't autofix this
20+
]
21+
1822
[lint.flake8-pytest-style]
1923
raises-require-match-for = ["*"] # ensures we always have a match for our raises statements so that we validate tests fail for the right reason

ruff.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ ignore = [
6969
# Allow fix for all enabled rules (when `--fix`) is provided.
7070
fixable = ["ALL"]
7171
unfixable = [
72-
"T201", "T203", # don't automatically delete print statements, just warn about them
73-
"RUF100", # don't automatically remove unnecessary suppressions, because that can leave behind a now-stale comment about why the suppression was originally added
74-
"FURB136", "PLR1730", # don't automatically replace if statements with min/max functions. Sometimes the if statement is more readable or better for code coverage checking
75-
]
72+
"T201", "T203", # don't automatically delete print statements, just warn about them
73+
"RUF100", # don't automatically remove unnecessary suppressions, because that can leave behind a now-stale comment about why the suppression was originally added
74+
"FURB136", "PLR1730", # don't automatically replace if statements with min/max functions. Sometimes the if statement is more readable or better for code coverage checking
75+
]
7676

7777
# Allow unused variables if it's an underscore or double underscore.
7878
dummy-variable-rgx = "^_$|^__$"
@@ -87,7 +87,7 @@ dummy-variable-rgx = "^_$|^__$"
8787
force-single-line = true
8888

8989
[lint.flake8-builtins]
90-
builtins-ignorelist = ["id"] # We use the id() builtin little enough that it's okay to shadow it
90+
builtins-ignorelist = ["id"] # We use the id() builtin rarely enough that it's okay to shadow it
9191

9292
[lint.flake8-annotations]
9393
mypy-init-return = true # we don't care about annotating all __init__ methods as returning None

template/.github/workflows/get-values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ jobs:
2525
pr-short-num: ${{ steps.find-pr-num.outputs.number }}
2626
steps:
2727
- name: Display full GitHub context
28-
run: echo '${{ toJSON(github) }}'
28+
run: |
29+
jq . <<'JSON'
30+
${{ toJSON(github) }}
31+
JSON
2932
3033
- name: Checkout code
3134
uses: actions/[email protected]

template/ruff-test.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,9 @@ ignore = [
1515
"TRY003", # tests dont need to create a custom exception classes, generally you want to throw an AssertionError with a message anyway
1616
]
1717

18+
unfixable = [
19+
"SIM117", # pytest.raises context managers should generally be separate from others so they can be very specific about where the error is being raised from, so don't autofix this
20+
]
21+
1822
[lint.flake8-pytest-style]
1923
raises-require-match-for = ["*"] # ensures we always have a match for our raises statements so that we validate tests fail for the right reason

template/ruff.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ ignore = [
6969
# Allow fix for all enabled rules (when `--fix`) is provided.
7070
fixable = ["ALL"]
7171
unfixable = [
72-
"T201", "T203", # don't automatically delete print statements, just warn about them
73-
"RUF100", # don't automatically remove unnecessary suppressions, because that can leave behind a now-stale comment about why the suppression was originally added
74-
"FURB136", "PLR1730", # don't automatically replace if statements with min/max functions. Sometimes the if statement is more readable or better for code coverage checking
75-
]
72+
"T201", "T203", # don't automatically delete print statements, just warn about them
73+
"RUF100", # don't automatically remove unnecessary suppressions, because that can leave behind a now-stale comment about why the suppression was originally added
74+
"FURB136", "PLR1730", # don't automatically replace if statements with min/max functions. Sometimes the if statement is more readable or better for code coverage checking
75+
]
7676

7777
# Allow unused variables if it's an underscore or double underscore.
7878
dummy-variable-rgx = "^_$|^__$"
@@ -87,7 +87,7 @@ dummy-variable-rgx = "^_$|^__$"
8787
force-single-line = true
8888

8989
[lint.flake8-builtins]
90-
builtins-ignorelist = ["id"] # We use the id() builtin little enough that it's okay to shadow it
90+
builtins-ignorelist = ["id"] # We use the id() builtin rarely enough that it's okay to shadow it
9191

9292
[lint.flake8-annotations]
9393
mypy-init-return = true # we don't care about annotating all __init__ methods as returning None

0 commit comments

Comments
 (0)