From c137e222d42ee5f36670b3b2138243c1b12eae83 Mon Sep 17 00:00:00 2001 From: jmaczan Date: Sat, 18 Oct 2025 02:00:52 +0000 Subject: [PATCH] .venv/ in .gitignore (#165418) `uv venv` creates venv in `.venv/` directory. So, it's useful to have `.venv/` in `.gitignore`, since perhaps more people are using `uv` in their work. As per comment https://github.com/pytorch/pytorch/pull/164923/files/3592f5f4e5e536797cb042f03b048169661a428f#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947 uv docs that confirms it: https://docs.astral.sh/uv/pip/environments/#using-arbitrary-python-environments Pull Request resolved: https://github.com/pytorch/pytorch/pull/165418 Approved by: https://github.com/ezyang --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 3a4cae5d8290..447ef777e929 100644 --- a/.gitignore +++ b/.gitignore @@ -374,6 +374,7 @@ third_party/ruy/ third_party/glog/ # Virtualenv +.venv/ venv/ # Log files