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`.
This commit is contained in:
Erik Johnson 2024-02-06 10:00:39 -06:00 committed by Pedro Algarvio
parent 20573c8941
commit 2b364c92e6

5
.gitignore vendored
View file

@ -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