fix(python): remove deprecated venv_auto_create setting#8384
Conversation
Remove the long-deprecated `python.venv_auto_create` and
`python_venv_auto_create` settings. Users should use
`_.python.venv = { path = ".venv", create = true }` instead.
Also clarify docs for `python.uv_venv_auto` — only the `= true`
boolean value is deprecated, not the setting itself.
Closes #8376
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refactors Python virtual environment management by removing long-deprecated auto-creation settings and their associated internal logic. The changes streamline the configuration process, encouraging users to adopt the modern Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request removes the deprecated python.venv_auto_create and python_venv_auto_create settings. The changes are comprehensive, covering code, documentation, tests, and schema definitions. The logic for auto-creating virtual environments via the legacy virtualenv tool option has been correctly removed from the Python core plugin. Additionally, the documentation for python.uv_venv_auto has been clarified to specify that only the true value is deprecated, not the setting itself. The changes are clean and well-executed, and I found no issues in my review.
Greptile SummaryThis PR successfully removes long-deprecated Python venv settings (
All references to the deprecated settings have been removed from the codebase. Users are now directed to use the modern Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 38f7c89 |
Hyperfine Performance
|
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2026.2.23 x -- echo |
19.2 ± 0.6 | 17.7 | 22.6 | 1.00 |
mise x -- echo |
19.7 ± 0.6 | 18.4 | 25.0 | 1.03 ± 0.04 |
mise env
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2026.2.23 env |
18.6 ± 0.5 | 17.4 | 24.0 | 1.00 |
mise env |
19.5 ± 0.8 | 18.0 | 28.5 | 1.05 ± 0.05 |
mise hook-env
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2026.2.23 hook-env |
19.4 ± 0.5 | 18.1 | 21.4 | 1.00 |
mise hook-env |
19.6 ± 0.7 | 18.1 | 27.2 | 1.01 ± 0.04 |
mise ls
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2026.2.23 ls |
18.4 ± 0.9 | 16.9 | 31.2 | 1.01 ± 0.06 |
mise ls |
18.2 ± 0.5 | 16.8 | 19.9 | 1.00 |
xtasks/test/perf
| Command | mise-2026.2.23 | mise | Variance |
|---|---|---|---|
| install (cached) | 116ms | 116ms | +0% |
| ls (cached) | 70ms | 70ms | +0% |
| bin-paths (cached) | 72ms | 71ms | +1% |
| task-ls (cached) | 709ms | 699ms | +1% |
### 🐛 Bug Fixes - **(aqua)** remove unnecessary bin_paths disk cache by @jdx in [#8383](#8383) - **(hooks)** render tera templates and fix output masking by @jdx in [#8385](#8385) - **(install)** improve error when registry tool has no supported backends by @jdx in [#8388](#8388) - **(python)** remove deprecated venv_auto_create setting by @jdx in [#8384](#8384)
Summary
python.venv_auto_createandpython_venv_auto_createsettings (users should use_.python.venv = { path = ".venv", create = true }instead)virtualenvtool option in the Python core pluginpython.uv_venv_auto— only the= trueboolean value is deprecated, not the setting itselfCloses #8376
Test plan
mise run build— clean build, no warningsmise run test:unit— all 491 tests passmise run test:e2e test_settings_ls— passesmise run lint-fix— all lint checks pass🤖 Generated with Claude Code
Note
Medium Risk
Removes a deprecated setting and its associated auto-create behavior for legacy
virtualenvtool options, which can change behavior for users still relying on implicit venv creation. Changes are localized to Python settings/schema/docs and the core Python plugin.Overview
Removes the deprecated Python settings
python.venv_auto_createandpython_venv_auto_createfromsettings.toml/generated schema and drops their migration/hidden-config handling inSettings.Updates the core Python plugin so the legacy
virtualenvtool option no longer auto-creates missing venvs; it now only warns with manual creation instructions, and simplifiesget_virtualenvcall sites accordingly.Docs and tests are adjusted to reflect the deprecation cleanup, including clarifying that only the boolean
python.uv_venv_auto = truevalue is deprecated.Written by Cursor Bugbot for commit 38f7c89. This will update automatically on new commits. Configure here.