Skip to content

Commit a010d50

Browse files
authored
[Docathon][CodeStyle Fix No.21] enable UP031 rule (#6255)
1 parent f654f19 commit a010d50

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docs/api/gen_alias_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def _find_real_api_by_grep_file(self, api_list):
9393
elif inspect.isfunction(obj):
9494
reg = "def %s(" % api.split(".")[-1]
9595

96-
shell_cmd = "find %s -name '*.py' | xargs grep \"%s\" " % (
96+
shell_cmd = "find {} -name '*.py' | xargs grep \"{}\" ".format(
9797
self.paddle_root_path,
9898
reg,
9999
)

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,5 @@ ignore = [
9393
"E711",
9494
"E712",
9595
"F811",
96-
"F821",
97-
"UP031"
96+
"F821"
9897
]

0 commit comments

Comments
 (0)