mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-07 12:05:33 +00:00
revert formatting mistake
This commit is contained in:
parent
bad810a544
commit
859b97e5ba
@ -539,17 +539,14 @@ def init(args):
|
|||||||
# the list of exported modules, installed locally
|
# the list of exported modules, installed locally
|
||||||
# and the package name is not in the list of local module names
|
# and the package name is not in the list of local module names
|
||||||
# it add to difference
|
# it add to difference
|
||||||
difference = [
|
difference = [x for x in candidates if
|
||||||
x
|
|
||||||
for x in candidates
|
|
||||||
if
|
|
||||||
# aggregate all export lists into one
|
# aggregate all export lists into one
|
||||||
# flatten the list
|
# flatten the list
|
||||||
# check if candidate is in exports
|
# check if candidate is in exports
|
||||||
x.lower() not in [y for x in local for y in x["exports"]] and
|
x.lower() not in [y for x in local for y in x['exports']]
|
||||||
|
and
|
||||||
# check if candidate is package names
|
# check if candidate is package names
|
||||||
x.lower() not in [x["name"] for x in local]
|
x.lower() not in [x['name'] for x in local]]
|
||||||
]
|
|
||||||
|
|
||||||
imports = local + get_imports_info(difference, proxy=proxy, pypi_server=pypi_server)
|
imports = local + get_imports_info(difference, proxy=proxy, pypi_server=pypi_server)
|
||||||
# sort imports based on lowercase name of package, similar to `pip freeze`.
|
# sort imports based on lowercase name of package, similar to `pip freeze`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user