Skip to content

Commit

Permalink
style: 更新 Ruff 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
FHU-yezi committed Dec 5, 2024
1 parent 78a7b37 commit a90c791
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/jianshu/user_assets_ranking.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async def main() -> None:
data.append(processed_item)

# TODO
if len(data) == 1000: # noqa: PLR2004
if len(data) == 1000:
break

await DbAssetsRankingRecord.insert_many(data)
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ lint.select = [
lint.ignore = [
"ISC001",
"PERF203",
"PLR2004",
"RUF001",
"RUF002",
"RUF003",
Expand Down

0 comments on commit a90c791

Please sign in to comment.