From 2d7ae06abdc9786a0f04270970a2da0bd6ea8295 Mon Sep 17 00:00:00 2001 From: ftnext Date: Sun, 24 May 2026 13:27:47 +0900 Subject: [PATCH] Mention Python 3.13 venv gitignore behavior Python 3.13's venv module creates SCM ignore files by default, including Git ignore files, so the manual .gitignore step is only needed for Python 3.12 and below. This matches the existing uv tip, as uv also creates .venv/.gitignore when creating the virtual environment. Reference: https://docs.python.org/3/whatsnew/3.13.html#venv Context: noticed while checking virtual-environments.md after #15463 in 0.163.2. --- docs/en/docs/virtual-environments.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/en/docs/virtual-environments.md b/docs/en/docs/virtual-environments.md index 119a6926a3..f48230c457 100644 --- a/docs/en/docs/virtual-environments.md +++ b/docs/en/docs/virtual-environments.md @@ -268,6 +268,12 @@ If you are using **Git** (you should), add a `.gitignore` file to exclude everyt /// tip +If you used Python 3.13 or newer, it already did this for you, you can skip this step. 😎 + +/// + +/// tip + If you used [`uv`](https://github.com/astral-sh/uv) to create the virtual environment, it already did this for you, you can skip this step. 😎 ///