mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-01 09:00:15 +00:00
Added .svn & .hg to directory ignores.
Also added *.bak to git ignores. Addresses #25
This commit is contained in:
parent
74d51a067c
commit
4b30cf6ae6
1
.gitignore
vendored
1
.gitignore
vendored
@ -52,3 +52,4 @@ Session.vim
|
||||
.netrwhist
|
||||
*~
|
||||
|
||||
/pipreqs/*.bak
|
||||
|
@ -32,7 +32,7 @@ REGEXP = [
|
||||
def get_all_imports(path):
|
||||
imports = []
|
||||
candidates = []
|
||||
ignore_dirs = [".git", "__pycache__", "env"]
|
||||
ignore_dirs = [".hg", ".svn", ".git", "__pycache__", "env"]
|
||||
|
||||
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