Skip to content

Commit 52e0162

Browse files
authored
[Docathon][CodeStyle Fix No.13] enable C416 rule (#6263)
1 parent 5914c21 commit 52e0162

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ci_scripts/check_api_docs_en.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def check_system_message_in_doc(doc_file):
9595

9696
if __name__ == '__main__':
9797
args = parse_args()
98-
py_files = [fn for fn in args.py_files.split('\n')]
98+
py_files = list(args.py_files.split('\n'))
9999
# 此处获取的全路径是 python/paddle/amp/auto_cast.py,在 api_info_all.json 中的路径是 /paddle/amp/auto_cast.py
100100
# 做字符串替换
101101
for i in range(len(py_files)):

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ ignore = [
8282
"PLR1722",
8383
"C403",
8484
"C414",
85-
"C416",
8685
"E401",
8786
"E711",
8887
"E712",

0 commit comments

Comments
 (0)