From 2b364c92e6319ec3a9884afff10e6e4e1e1642db Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Tue, 6 Feb 2024 10:00:39 -0600 Subject: [PATCH] Two tweaks for .gitignore 1. `/env/` and `/.env` can be represented in a single entry using `/.?env/` 2. Update `/venv/` entry to also ignore `/.venv/`. Some tools (for example poetry) will look for and use virtualenvs in the root of a project if they are named `.venv`. --- .gitignore | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 154a3decc15..cbc31248905 100644 --- a/.gitignore +++ b/.gitignore @@ -23,8 +23,7 @@ Pipfile.lock # top of salt such as # - /some/path$ git clone https://github.com/thatch45/salt.git # - /some/path$ virtualenv --python=/usr/bin/python2.6 salt -/env/ -/.env/ +/.?env/ /bin/ /etc/ /include/ @@ -37,7 +36,7 @@ Pipfile.lock /tests/cachedir/ /tests/unit/templates/roots/ /var/ -/venv/ +/.?venv/ # setuptools stuff *.egg-info