Skip to content

Commit

Permalink
[CodeStyle] upgrade black in .pre-commit-config.yaml (PaddlePaddl…
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooo-create authored Oct 22, 2023
1 parent f6a8d37 commit 3c61a3a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black.git
rev: 22.8.0
rev: 23.3.0
hooks:
- id: black
files: \.py$
Expand Down
1 change: 1 addition & 0 deletions ci_scripts/CAPItools/utils_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from utils import get_parameters, parse_doxygen


# 用于生成API文档的辅助类
# __init__ 初始化函数,调用decode
# decode 用于解析CppHeaderParser的解析信息
Expand Down
1 change: 1 addition & 0 deletions ci_scripts/check_api_label_cn.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
)
logger.setLevel(logging.INFO)


# check file's api_label
def check_api_label(rootdir, file):
real_file = Path(rootdir) / file
Expand Down
1 change: 0 additions & 1 deletion docs/api/gen_alias_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def get_func_and_class_from_paddle(self):
path=self.root_module.__path__,
prefix=self.root_module.__name__ + ".",
):

try:
m = eval(name)
except AttributeError:
Expand Down

0 comments on commit 3c61a3a

Please sign in to comment.