提交 e0825746 authored 作者: Frederic Bastien's avatar Frederic Bastien

Skip flake8 tests on auto saved tmp file

上级 d915fb9d
......@@ -185,7 +185,7 @@ whitelist_flake8 = [
]
def list_files(dir_path=theano.__path__[0], pattern='*.py'):
def list_files(dir_path=theano.__path__[0], pattern='*.py', no_match=".#"):
"""
List all files under theano's path.
"""
......@@ -194,7 +194,8 @@ def list_files(dir_path=theano.__path__[0], pattern='*.py'):
for f in files:
if fnmatch(f, pattern):
path = os.path.join(dir, f)
files_list.append(path)
if not f.startswith(no_match):
files_list.append(path)
return files_list
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论