MCPcopy
hub / github.com/bndr/pipreqs / diff

Function diff

pipreqs/pipreqs.py:381–387  ·  view source on GitHub ↗

Display the difference between modules in a file and imported modules.

(file_, imports)

Source from the content-addressed store, hash-verified

379
380
381def 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
390def clean(file_, imports):

Callers 1

initFunction · 0.85

Calls 1

compare_modulesFunction · 0.85

Tested by

no test coverage detected