mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
refactor(pipreqs): pep8
This commit is contained in:
parent
74392c7bc6
commit
1a990b52d5
@ -127,6 +127,7 @@ def output_requirements(imports):
|
||||
print('\n'.join(fmt.format(**item) if item['version'] else '{name}'.format(**item)
|
||||
for item in imports))
|
||||
|
||||
|
||||
def get_imports_info(imports, pypi_server="https://pypi.python.org/pypi/", proxy=None):
|
||||
result = []
|
||||
|
||||
@ -222,7 +223,7 @@ def init(args):
|
||||
|
||||
candidates = get_all_imports(args['<path>'],
|
||||
encoding=encoding,
|
||||
extra_ignore_dirs = extra_ignore_dirs)
|
||||
extra_ignore_dirs=extra_ignore_dirs)
|
||||
candidates = get_pkg_names(candidates)
|
||||
logging.debug("Found imports: " + ", ".join(candidates))
|
||||
pypi_server = "https://pypi.python.org/pypi/"
|
||||
|
Loading…
x
Reference in New Issue
Block a user