mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
fix(pipreqs): add venv to ignore_dirs
This commit is contained in:
parent
ea191acd36
commit
1e7b021120
@ -42,7 +42,7 @@ else:
|
||||
def get_all_imports(path, encoding=None):
|
||||
imports = []
|
||||
candidates = []
|
||||
ignore_dirs = [".hg", ".svn", ".git", "__pycache__", "env"]
|
||||
ignore_dirs = [".hg", ".svn", ".git", "__pycache__", "env", "venv"]
|
||||
|
||||
for root, dirs, files in os.walk(path):
|
||||
dirs[:] = [d for d in dirs if d not in ignore_dirs]
|
||||
|
Loading…
x
Reference in New Issue
Block a user