Skip to content

Commit 23b89ad

Browse files
authored
fix: fix resolution strategy selection (#297)
1 parent 1c969bd commit 23b89ad

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

template/.devcontainer/devcontainer.json.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"overrideCommand": true,
1313
"remoteUser": "user",
14-
"postStartCommand": "sudo chown -R user:user /opt/ && uv sync --python ${PYTHON_VERSION:-{{ python_version }}} ${RESOLUTION_STRATEGY:+--resolution $RESOLUTION_STRATEGY} --all-extras && pre-commit install --install-hooks",
14+
"postStartCommand": "sudo chown -R user:user /opt/ && uv sync --python ${localEnv:PYTHON_VERSION:{{ python_version }}} {% if project_type == 'package' %}--resolution ${localEnv:RESOLUTION_STRATEGY:highest} {% endif %}--all-extras && pre-commit install --install-hooks",
1515
"customizations": {
1616
"jetbrains": {
1717
"backend": "PyCharm",

template/pyproject.toml.jinja

+4-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@ convention = "numpy"
149149
[tool.uv] # https://docs.astral.sh/uv/reference/settings/
150150
package = true
151151

152-
[tool.poe.tasks] # https://github.com/nat-n/poethepoet
152+
[tool.poe.executor] # https://github.com/nat-n/poethepoet
153+
type = "simple"
154+
155+
[tool.poe.tasks]
153156
{%- if with_fastapi_api %}
154157

155158
[tool.poe.tasks.serve]

0 commit comments

Comments
 (0)