未验证 提交 988abd6a 编写于 作者: C Chen Weihang 提交者: GitHub

Skip core ops api in static check (#44284)

* skip core ops api in static check, test=document_fix

* polish cond, test=document_fix
上级 441606fd
......@@ -292,6 +292,11 @@ def parse_args():
help="using get_all_api or from_modulelist")
parser.add_argument('module', type=str, help='module',
default='paddle') # not used
parser.add_argument('--skipped',
dest='skipped',
type=str,
help='Skip Checking submodules',
default='paddle.fluid.core_avx.eager.ops')
if len(sys.argv) == 1:
args = parser.parse_args(['paddle'])
......@@ -320,6 +325,8 @@ if __name__ == '__main__':
all_api_names_to_k[api_name] = k
all_api_names_sorted = sorted(all_api_names_to_k.keys())
for api_name in all_api_names_sorted:
if args.skipped != '' and api_name.find(args.skipped) >= 0:
continue
api_info = api_info_dict[all_api_names_to_k[api_name]]
print("{0} ({2}, ('document', '{1}'))".format(
api_name, md5(api_info['docstring']), api_info['signature']
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册