support human-friendly names in `--disable`, `noqa` and `--enable`
還沒有人認領這個 Issue。
評估
研究方向
先閱讀 Ruff issue 1773 和 flake8-async issue 185,接著檢查目前如何處理 --disable 和 --enable。完成的標準是為規則確定雙方同意且便於人理解的名稱,並在選項和 noqa 解析中支援這些名稱。
由索引模型根據 Issue 內容生成。
描述
Ruff might be adding support for human-friendly names for rules https://github.com/astral-sh/ruff/issues/1773
So at some point somebody probably needs to come up with names for our rules as they're implemented in Ruff anyway, in which case we might as well do it ourselves*. The easiest place to support this would be in --disable and --enable. We don't currently parse # noqa, see https://github.com/python-trio/flake8-async/issues/185, but this adds another reason to handle noqa-parsing on our own.
But the main upside is probably in daily speech and discussion, throwing around ASYNC102 or ASYNC119 ~always requires looking up the codes even for me.
* Claude did decent but not great when asked for suggestions:
ASYNC100:
- timeout-no-await
- idle-timeout
- checkpoint-missing
- await-required
ASYNC101:
- unsafe-nursery-yield
- yield-breaks-nursery
- yield-context-only
- invalid-yield
ASYNC102:
- unshielded-await
- await-needs-shield
- unsafe-finally-await
- unprotected-await
ASYNC103:
- unhandled-cancellation
- cancellation-not-reraised
- missing-cancel-handler
- reraise-required
ASYNC104:
- unreraised-cancellation
- must-reraise-cancel
- cancellation-not-propagated
- incomplete-cancellation
- 主要語言
- Python
- 星號
- 26
- 分支
- 10
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
python-trio/flake8-async 的其他 Issue
-
rule improvement
難度 2/5 1-3 小時 新手友好度 68/100
python-trio/flake8-async#457 · 1 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 68/100
python-trio/flake8-async#475 · 1 則留言 · 1 個 reaction ·
-
new rule
難度 3/5 1-2 天 新手友好度 55/100
python-trio/flake8-async#454 · 1 則留言 ·
-
rule improvement
難度 3/5 1-2 天 新手友好度 62/100
python-trio/flake8-async#447 · 5 則留言 ·
-
good first issue
難度 5/5 一週以上 新手友好度 15/100
python-trio/flake8-async#396 · 1 則留言 ·
查看 python-trio/flake8-async 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 90/100
維護者通常 1 天內回覆
-
instance instance add
難度 2/5 1-3 小時 新手友好度 68/100
searxng/searx-instances#941 · 1 則留言 ·
-
難度 1/5 1 小時以內 新手友好度 92/100
FluidNumerics/fluid-walk-blocker#89 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆