Skip to content

feat: use 'uv run python' as interpreter when uv is selected#472

Closed
fmargom wants to merge 1 commit intodrivendataorg:masterfrom
fmargom:patch-1
Closed

feat: use 'uv run python' as interpreter when uv is selected#472
fmargom wants to merge 1 commit intodrivendataorg:masterfrom
fmargom:patch-1

Conversation

@fmargom
Copy link

@fmargom fmargom commented Dec 28, 2025

This PR updates the Makefile template to define PYTHON_INTERPRETER as uv run python when uv is selected as the environment manager.

Context

Currently, when using uv, the user still relies on the system python or must manually activate the virtual environment (source .venv/bin/activate) before running make commands like make data.

Modern uv workflows encourage using uv run to execute scripts in the project environment ephemerally, ensuring reproducibility and reducing friction.

Add conditional Python interpreter based on environment manager
@fmargom fmargom closed this Dec 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant