From a90c7913011539284fa329923372d8c548bc90a6 Mon Sep 17 00:00:00 2001 From: FHU-yezi Date: Thu, 5 Dec 2024 09:39:09 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=9B=B4=E6=96=B0=20Ruff=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jobs/jianshu/user_assets_ranking.py | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/jobs/jianshu/user_assets_ranking.py b/jobs/jianshu/user_assets_ranking.py index 18f41dc..e898113 100644 --- a/jobs/jianshu/user_assets_ranking.py +++ b/jobs/jianshu/user_assets_ranking.py @@ -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) diff --git a/pyproject.toml b/pyproject.toml index 3a5b8b8..a5c6647 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,6 +54,7 @@ lint.select = [ lint.ignore = [ "ISC001", "PERF203", + "PLR2004", "RUF001", "RUF002", "RUF003",