-
Notifications
You must be signed in to change notification settings - Fork 7
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
IncrementalPlugin does not use norecursedirs
and --ignore
options?
#9
Comments
Yes, the plugin should take these options into account. I guess no harm in ignoring vitualenvs by default as well. Any reliable way to detect those.
I can't image anything else to be used as default.
Not wrong. Although I use virtualenvwrapper & Virtual Fish, where all virtualenvs are kept on same location. |
Good question, mine has a file
On a related note; is there any way to specify the |
I use |
It is, but looking at the docs it appears to be discouraged. I'll try using |
I've tried using the following
Which correctly ignores these folders if I remove the |
Just ran into this issue 3 years later when I switched from Running without My experience is that |
Hi! This looks like an awesome package so I've been trying to get it running, but whenever I run pytest it now gets stuck forever. I've printed the trace and added some print statements, and it appears that the
IncrementalPlugin
ignores thenorecursedirs
option of my pytest config, which results in it trying to parse my entire virtual environment stored in the same folder...The problem seems to be with this part of the code:
https://github.com/pytest-dev/pytest-incremental/blob/master/pytest_incremental.py#L577
Since I have no explicit watch path set (I want to process all files except those I explicitly ignore, such as my virtual environment), it just defaults to
os.getcwd()
. Is this a deliberate choice? I'm not sure how exactlypytest
uses thenorecursedirs
option internally, but it does work correctly in the sense that if I disablepytest-incremental
, it does indeed skip those folders. The same is true for the--ignore
command line option.I assume having a virtual environment in the same folder is a pretty common thing to do, so perhaps I'm missing something or doing something wrong? Thanks!
The text was updated successfully, but these errors were encountered: