Added .svn & .hg to directory ignores.

Also added *.bak to git ignores.

Addresses #25
This commit is contained in:
Steve Barnes 2015-09-28 15:21:32 +01:00
parent 74d51a067c
commit 4b30cf6ae6
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -52,3 +52,4 @@ Session.vim
.netrwhist
*~
/pipreqs/*.bak

View File

@ -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]