-
Notifications
You must be signed in to change notification settings - Fork 212
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
use shell globs on file name for include/exclude patterns #137
Conversation
7fec857
to
da11fd9
Compare
if not tmp_client: | ||
_client = (client, instance) | ||
return instance | ||
return _client[1] | ||
|
||
|
||
def get_client_default_config(): | ||
return dict( | ||
include_paths=_get_installed_apps_paths(), |
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.
looks like _get_installed_apps_paths
was only called from here, could remove that function too
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.
excellent point!
I'm unclear on what will happen on windows but noticed your TODO, not sure how you normally handle that. |
Regarding Windows, I did a quick test with Python 3.6
So ( I'll do some more tests with Python 2 and pypy and then add Windows-specific patterns. |
6d1276c
to
d8071b0
Compare
The previously used module path was very brittle. Especially in the case of Django, where the default `include_path` was the set of `INSTALLED_APPS`, this would have a lot of false positives, namely all 3rd party Django apps. Using the `lib/python` exclude patterns should work for all cases that use virtualenvs or the system python.
d8071b0
to
52265a4
Compare
The previously used module path was very brittle. Especially in the case of Django, where the default `include_path` was the set of `INSTALLED_APPS`, this would have a lot of false positives, namely all 3rd party Django apps. Using the `lib/python` exclude patterns should work for all cases that use virtualenvs or the system python. closes #137
The previously used module path was very brittle. Especially in the
case of Django, where the default
include_path
was the set ofINSTALLED_APPS
, this would have a lot of false positives, namelyall 3rd party Django apps.
Using the
lib/python
exclude patterns should work for all cases thatuse virtualenvs or the system python.