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

Skip flake8 tests on auto saved tmp file

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