Skip to content

Commit cae9305

Browse files
vanolucaslsorber
andauthored
chore: apply updates from upstream (#2)
* fix(api): remove unnecessary default type argument (superlinear-ai#280) * fix: relock before cz bump (superlinear-ai#277) --------- Co-authored-by: Laurent Sorber <laurent.sorber@gmail.com>
1 parent 46d8314 commit cae9305

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.devcontainer/devcontainer.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
},
99
"remoteUser": "root",
1010
"onCreateCommand": "echo 'eval \"$(starship init bash)\"' >> ~/.bashrc",
11-
"postCreateCommand": "uv sync && uv run pre-commit install --install-hooks",
11+
"postCreateCommand": "uv sync && pre-commit install --install-hooks",
12+
"containerEnv": {
13+
"VIRTUAL_ENV": "/opt/venv",
14+
"PATH": "/opt/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
15+
"UV_PROJECT_ENVIRONMENT": "/opt/venv",
16+
},
1217
"customizations": {
1318
"vscode": {
1419
"extensions": [
@@ -36,8 +41,8 @@
3641
"github.copilot.chat.edits.codesearch.enabled": true,
3742
"github.copilot.chat.edits.enabled": true,
3843
"github.copilot.nextEditSuggestions.enabled": true,
39-
"python.defaultInterpreterPath": "/workspaces/substrate/.venv/bin/python",
40-
"python.terminal.activateEnvironment": true,
44+
"python.defaultInterpreterPath": "/opt/venv/bin/python",
45+
"python.terminal.activateEnvironment": false,
4146
"terminal.integrated.env.linux": {
4247
"GIT_EDITOR": "code --wait"
4348
},

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dependencies = [
1111

1212
[tool.commitizen]
1313
bump_message = "bump: v$current_version → v$new_version"
14+
pre_bump_hooks = ["uv lock --offline --upgrade-package substrate"]
1415
tag_format = "v$version"
1516
update_changelog_on_bump = true
1617
version_provider = "pep621"

template/.devcontainer/devcontainer.json.jinja

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
{%- if project_type == 'app' %}
88
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
99
{%- endif %}
10-
"ghcr.io/devcontainers/features/node:1": {},
1110
"ghcr.io/devcontainers-extra/features/starship": {}
1211
},
1312
"overrideCommand": true,

template/pyproject.toml.jinja

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ dev = [
6262

6363
[tool.commitizen] # https://commitizen-tools.github.io/commitizen/config/
6464
bump_message = "bump: v$current_version → v$new_version"
65+
pre_bump_hooks = ["uv lock --offline --upgrade-package {{ project_name_kebab_case }}"]
6566
tag_format = "v$version"
6667
update_changelog_on_bump = true
6768
version_provider = "pep621"

0 commit comments

Comments
 (0)