-
Notifications
You must be signed in to change notification settings - Fork 26
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
Update expand_source_files( ) #36
base: main
Are you sure you want to change the base?
Conversation
Allow files with all extensions irrespective of ".py"
By the way, the changes in this PR probably shouldn't be released to PyPI until google/pytype#204 has been released (or we should update pytype's setup.py to pin to the current version of importlab), since I think it would cause pytype's unreadable input checking to complain about all sorts of non-Python files. |
also, could you add some tests for your change? the best place would be in tests/graph.py; you can look at these two tests for how to do it: https://github.com/google/importlab/blob/master/tests/test_graph.py#L145 |
@martindemello Sure, I'll add test cases. |
@martindemello WIll removing |
@ritwik12 the existing tests should not be broken by this change; you will need to add another test or two to test that we handle both readable and unreadable files without a .py extension. the tests work by setting up a virtual file system as a dict of
(look at you will need to add a new dict, e.g. |
@martindemello Thanks for your explaination |
Solves #35 as requested in 111, Allow files with all extensions irrespective of ".py"