mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
Improve function diff docstring, begin function clean
This commit is contained in:
parent
7549b1c416
commit
ac6ce860d0
@ -291,12 +291,16 @@ def compare_modules(file_, imports):
|
||||
|
||||
|
||||
def diff(file_, imports):
|
||||
"""Display the difference between modules in file a and imported modules."""
|
||||
"""Display the difference between modules in a file and imported modules."""
|
||||
modules_not_imported = compare_modules(file_, imports)
|
||||
|
||||
logging.info("The following modules are in {} but do not seem to be imported: "
|
||||
"{}".format(file_, ", ".join(x for x in modules_not_imported)))
|
||||
|
||||
def clean(file_, imports):
|
||||
"""Remove modules that aren't imported in project from file."""
|
||||
|
||||
|
||||
|
||||
def init(args):
|
||||
encoding = args.get('--encoding')
|
||||
|
Loading…
x
Reference in New Issue
Block a user