-
Notifications
You must be signed in to change notification settings - Fork 748
CONTRIBUTING: Make virtualenv dir name consistent with gitignore #835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CONTRIBUTING: Make virtualenv dir name consistent with gitignore #835
Conversation
CONTRIBUTING.rst
Outdated
| $ virtualenv venv | ||
| $ source venv/bin/activate | ||
|
|
||
| Note that ``venv/`` is ignored via ``.gitignore``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so I assume that the original author intended for the project name to be in the venv name so it would show up in the PS1 -- I think we can make both work with something this:
in .gitignore
/venv*
in docs
suggest venv-pycodestyle
(and it'll also work for the common workflow of a venv just named venv or venv2 or venv3)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. (Would still be nice to call out gitignore, 'cause that's the first thing I'll look at when generating auxiliary artifacts.)
Update gitignore to be more flexible
70d9813 to
84da6f3
Compare
asottile
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| docs/_build | ||
| build/ | ||
| venv/ | ||
| /venv*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the leading slash correct here? Should it just be venv*/ This isn't a regular expression, it's a glob (I thought)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The leading slash in .gitignore implies that it should only match venv*/ directories that directly neighbor the .gitignore file.
e.g. it will ignore pycodestyle/venv-biscuit/, but not pycodestyle/docs/venv-cookie.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Citing da sources:
https://git-scm.com/docs/gitignore#_pattern_format
A leading slash matches the beginning of the pathname. For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
|
Er, and is there an easy way to retrigger Travis? Or should I just close + reopen the PR? |
I've triggered both to re-build. The CPython 3.5 build at the bottom, however, is for flake8. That one is likely not related to flakey tests. |
|
thanks! |

Had noticed this while doing #834.