Skip to content

Commit

Permalink
Two tweaks for .gitignore
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
terminalmage authored and s0undt3ch committed Feb 6, 2024
1 parent 20573c8 commit 2b364c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -37,7 +36,7 @@ Pipfile.lock
/tests/cachedir/
/tests/unit/templates/roots/
/var/
/venv/
/.?venv/

# setuptools stuff
*.egg-info
Expand Down

0 comments on commit 2b364c9

Please sign in to comment.