diff --git a/ci_scripts/check_api_docs_en.py b/ci_scripts/check_api_docs_en.py index 212f3053dd2..3097ccb8e79 100644 --- a/ci_scripts/check_api_docs_en.py +++ b/ci_scripts/check_api_docs_en.py @@ -95,7 +95,7 @@ def check_system_message_in_doc(doc_file): if __name__ == '__main__': args = parse_args() - py_files = [fn for fn in args.py_files.split('\n')] + py_files = list(args.py_files.split('\n')) # 此处获取的全路径是 python/paddle/amp/auto_cast.py,在 api_info_all.json 中的路径是 /paddle/amp/auto_cast.py # 做字符串替换 for i in range(len(py_files)): diff --git a/pyproject.toml b/pyproject.toml index b74c7ca26e4..7a21a6be4db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -82,7 +82,6 @@ ignore = [ "PLR1722", "C403", "C414", - "C416", "E401", "E711", "E712",