Loading...
Loading...
Compare original and translation side by side
git diff --name-only HEADgit diff --name-only && git diff --cached --name-only.pygit diff --name-only HEADgit diff --name-only && git diff --cached --name-only.pyundefinedundefined
**Check:** Search changed files for `from \.` patterns.
**检查方式:** 在变更文件中搜索`from \.`模式。undefinedundefined
**Check:** Look for `def ` lines missing `->` return annotations. Ignore `__init__`, `setUp`, `tearDown`, test functions, and private methods where return type is obvious.
**检查方式:** 查找`def `行中缺少`->`返回注解的情况。忽略`__init__`、`setUp`、`tearDown`、测试函数以及返回类型明显的私有方法。except:undefinedexcept:undefined
**Check:** Search for `except:` not followed by a specific exception class.
**检查方式:** 搜索未跟随具体异常类的`except:`语句。src/print()import logging
logger = logging.getLogger(__name__)src/logger = logging.getLogger(__name__)print(src/src/print()import logging
logger = logging.getLogger(__name__)src/logger = logging.getLogger(__name__)src/print(make quick-checkmake quick-checkuser_idprocessing_jobsapi_keysusage_statsbilling_infooptimization_jobs.query(select(.filter(.where(user_iduser_idprocessing_jobsapi_keysusage_statsbilling_infooptimization_jobs.query(select(.filter(.where(user_id.pymake quick-check.pymake quick-checkundefinedundefined| File | Line | Rule | Severity | Status |
|---|---|---|---|---|
| src/api/routes.py | 42 | bare except | BLOCK | Fixed |
| 文件 | 行号 | 规则 | 严重级别 | 状态 |
|---|---|---|---|---|
| src/api/routes.py | 42 | 裸except | BLOCK | 已修复 |
undefinedundefined