Skip to content

Commit

Permalink
fix: relock before cz bump (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsorber authored Feb 20, 2025
1 parent 4c28227 commit 9625eb9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
},
"remoteUser": "root",
"onCreateCommand": "echo 'eval \"$(starship init bash)\"' >> ~/.bashrc",
"postCreateCommand": "uv sync && uv run pre-commit install --install-hooks",
"postCreateCommand": "uv sync && pre-commit install --install-hooks",
"containerEnv": {
"VIRTUAL_ENV": "/opt/venv",
"PATH": "/opt/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"UV_PROJECT_ENVIRONMENT": "/opt/venv",
},
"customizations": {
"vscode": {
"extensions": [
Expand Down Expand Up @@ -36,8 +41,8 @@
"github.copilot.chat.edits.codesearch.enabled": true,
"github.copilot.chat.edits.enabled": true,
"github.copilot.nextEditSuggestions.enabled": true,
"python.defaultInterpreterPath": "/workspaces/substrate/.venv/bin/python",
"python.terminal.activateEnvironment": true,
"python.defaultInterpreterPath": "/opt/venv/bin/python",
"python.terminal.activateEnvironment": false,
"terminal.integrated.env.linux": {
"GIT_EDITOR": "code --wait"
},
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies = [

[tool.commitizen]
bump_message = "bump: v$current_version → v$new_version"
pre_bump_hooks = ["uv lock --offline --upgrade-package substrate"]
tag_format = "v$version"
update_changelog_on_bump = true
version_provider = "pep621"
1 change: 0 additions & 1 deletion template/.devcontainer/devcontainer.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
{%- if project_type == 'app' %}
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
{%- endif %}
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers-extra/features/starship": {}
},
"overrideCommand": true,
Expand Down
1 change: 1 addition & 0 deletions template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ dev = [

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

0 comments on commit 9625eb9

Please sign in to comment.