Display the difference between modules in a file and imported modules.
(file_, imports)
| 379 | |
| 380 | |
| 381 | def diff(file_, imports): |
| 382 | """Display the difference between modules in a file and imported modules.""" # NOQA |
| 383 | modules_not_imported = compare_modules(file_, imports) |
| 384 | |
| 385 | logging.info( |
| 386 | "The following modules are in {} but do not seem to be imported: " |
| 387 | "{}".format(file_, ", ".join(x for x in modules_not_imported))) |
| 388 | |
| 389 | |
| 390 | def clean(file_, imports): |
no test coverage detected