Skip to content

Commit

Permalink
style: unify code style
Browse files Browse the repository at this point in the history
  • Loading branch information
shengchenyang committed Jan 1, 2025
1 parent 4251401 commit e29ed92
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ help:
@echo " git Set git proxy and line separator"
@echo " test Code test and coverage report"
@echo " start Pre-development setup steps"
@echo " build poetry build"
@echo " build_dist setuptools build"
@echo " install install whl/tar.gz file from the dist folder"
@echo " build Poetry build"
@echo " build_dist Setuptools build"
@echo " install Install whl/tar.gz file from the dist folder"
@echo " check Code check"
@echo " pytest Code test"
@echo " help Show this help message"
Expand Down
2 changes: 1 addition & 1 deletion ayugespidertools/common/encryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def md5(encrypt_data: str) -> str:
encrypt_data: 需要 md5 处理的参数
Returns:
1): md5 处理后的参数
1). md5 处理后的参数
"""
hl = hashlib.md5()
hl.update(encrypt_data.encode(encoding="utf-8"))
Expand Down
4 changes: 2 additions & 2 deletions ayugespidertools/common/multiplexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def dict_keys_to_lower(cls, deal_dict: dict) -> dict:
deal_dict: 需要处理的 dict
Returns:
1).处理后的 dict 值
1). 处理后的 dict 值
"""
key_to_lower_dict = {}
for key, value in deal_dict.items():
Expand All @@ -413,7 +413,7 @@ def dict_keys_to_upper(cls, deal_dict: dict) -> dict:
deal_dict: 需要处理的 dict
Returns:
1).处理后的 dict 值
1). 处理后的 dict 值
"""
key_to_upper_dict = {}
for key, value in deal_dict.items():
Expand Down
3 changes: 0 additions & 3 deletions ayugespidertools/extras/oss.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ def put_oss(
Args:
put_bytes: 需要上传的文件 bytes 内容或链接
file: 需要上传的文件的名称
Returns:
None
"""
assert isinstance(put_bytes, bytes), "put_bytes 需要是 bytes 格式"

Expand Down
2 changes: 1 addition & 1 deletion ayugespidertools/formatdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def judge_utc_time(local_time: str) -> bool:
local_time: 需要判断的时间参数,比如:Thu Jul 21 17:59:44 2022 或 Fri, 22 Jul 2022 01:43:06 +0800 等等
Returns:
1): 是否为 utc 格式的数据
1). 是否为 utc 格式的数据
"""
pattern = re.compile(r"""mon|tues|wed|thu|fri|sat|sun""")
return bool(pattern.findall(local_time.lower()))
Expand Down

0 comments on commit e29ed92

Please sign in to comment.