You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
.pytest_cache is showing up in projects git repos #3286
Indeed it does not, just thought I would mention that.
One thing that might help is to add a .pytest_cache/README file which explains what is the purpose of the directory and that it should not be added to version control. Of course few people will actually read that file, but other than that I'm out of ideas on how to improve the situation.
TBH I don't consider this critical, certainly a nuisance but not critical.
Does anybody see any drawback with having a .gitignore (and etc) with mask * in there? Seems like the perfect solution, solves the problem and trivial to implement.
git is the de facto winner of the scm wars due to the network effects - so lets add it, and be open for users of other systems to add support for their scm's
Hmm I agree. When I suggested to support other systems, I was under the impression that the most popular ones work similarly to .gitignore, as I have seen .hgignore multiple times. But reading the documentation I found you can only have a single .hgignore next to .hg, so this greatly complicates things. Same with Bazaar.
It is very hard to solve this issue for every SCM (except changing the location of .pytest_cache as depicted in #1089), so better to fix this with a simple solution for Git users rather than not solve this for everyone and linger this forever.
We can always change the solution later if we find a better way, after all.
Activity
The-Compiler commentedon Mar 6, 2018
Not sure how this would be actionable for pytest?
RonnyPfannschmidt commentedon Mar 6, 2018
its not clear to me either, but i started to note that people are affected by our change in a negative unintended way
nicoddemus commentedon Mar 6, 2018
People probably made the same mistake when we introduced
pytest-cacheinto the core and hence.cachestarted to be created every time pytest executed.nicoddemus commentedon Mar 6, 2018
I see that
.pytest_cachealready made into GitHub's default.gitignorefile in github/gitignore@f651f0d, which is good.RonnyPfannschmidt commentedon Mar 7, 2018
@nicoddemus that doesnt help people updating their projects however
nicoddemus commentedon Mar 7, 2018
Indeed it does not, just thought I would mention that.
One thing that might help is to add a
.pytest_cache/READMEfile which explains what is the purpose of the directory and that it should not be added to version control. Of course few people will actually read that file, but other than that I'm out of ideas on how to improve the situation.TBH I don't consider this critical, certainly a nuisance but not critical.
[MINOR] Add .pytest_cache to rat-excludes
[MINOR] Add .pytest_cache to rat-excludes
[MINOR] Add .pytest_cache to rat-excludes
[MINOR] Add .pytest_cache to rat-excludes
[MINOR] Fix travis builds
[MINOR] Fix travis builds
18 remaining items
nicoddemus commentedon Sep 14, 2018
Good point, we should also add Mercurial and other systems (Bazaar, ?)
nicoddemus commentedon Sep 14, 2018
Does anybody see any drawback with having a
.gitignore(and etc) with mask*in there? Seems like the perfect solution, solves the problem and trivial to implement.RonnyPfannschmidt commentedon Sep 14, 2018
git is the de facto winner of the scm wars due to the network effects - so lets add it, and be open for users of other systems to add support for their scm's
nicoddemus commentedon Sep 14, 2018
Hmm I agree. When I suggested to support other systems, I was under the impression that the most popular ones work similarly to
.gitignore, as I have seen.hgignoremultiple times. But reading the documentation I found you can only have a single.hgignorenext to.hg, so this greatly complicates things. Same with Bazaar.It is very hard to solve this issue for every SCM (except changing the location of
.pytest_cacheas depicted in #1089), so better to fix this with a simple solution for Git users rather than not solve this for everyone and linger this forever.We can always change the solution later if we find a better way, after all.
Update pytest to 3.8.1 (#259)
Update pytest to 3.8.1 (#12)
Update pytest to 3.8.1 (#29)
Scheduled weekly dependency update for week 38 (#6382)
Scheduled monthly dependency update for October (#389)
Merge #1576
Merge #38
[MINOR] Fix travis builds
HOPSWORKS-741 (#2)
Scheduled weekly dependency update for week 52 (#75)