Skip to content

Commit

Permalink
[Docathon][CodeStyle Fix No.13] enable C416 rule (#6263)
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooo-create authored Oct 29, 2023
1 parent 5914c21 commit 52e0162
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ci_scripts/check_api_docs_en.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ ignore = [
"PLR1722",
"C403",
"C414",
"C416",
"E401",
"E711",
"E712",
Expand Down

0 comments on commit 52e0162

Please sign in to comment.