mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 19:45:22 +00:00
Merge pull request #26 from GadgetSteve/master
Added .svn & .hg to directory ignores.
This commit is contained in:
commit
743627cc14
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