fix(import_parser): remove obsolete duplicated local import detection#172
Conversation
Codecov Report
@@ Coverage Diff @@
## main #172 +/- ##
=====================================
Coverage 95.1% 95.1%
=====================================
Files 28 28
Lines 895 895
Branches 146 146
=====================================
Hits 852 852
Misses 28 28
Partials 15 15
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
Thanks for raising the issue. I agree there is indeed room for improvement here. On the linked pull request: Identifying local modules is preferably done in the The reason I initially added this function, was that I encountered the following file structure a lot: where |
9b7798b to
a1daade
Compare
2b25b14 to
fb225f0
Compare
Thanks for the heads up, I've updated the PR to remove the method altogether, but the logic implemented in the first commit doesn't really apply to the logic in I think that the current logic to determine if a module is local is a sane one, we just need to make it a bit more configurable to handle cases where projects use |
Resolves #171.
PR Checklist
docsis updatedDescription of changes
Update
_remove_local_file_importsmethod so that it correctly considers local imports for modules in the root directory of a project.