Enable ruff security, logging and debugging rules (S, T20, LOG, G, DTZ, ERA, TD, FIX, EXE)
維護者通常 2 天內回覆
評估
研究方向
The payload names no specific files, only the ruff rule groups (S, T20, LOG, G, DTZ, ERA, TD, FIX, EXE) and the S101 asserts, T20 prints, and DTZ datetimes they touch. Start with the ruff configuration in the repository and linked pull request #3915 to see which rules are already enabled and what has been fixed. Done means the new rules pass with each finding either fixed or suppressed with a stated reason, and error responses and published schemas are unchanged.
由索引模型根據 Issue 內容生成。
描述
Phase 1 step 1.8, group 6 of the rules workstream: enable ruff's security, logging and debugging rules (S, T20, LOG, G, DTZ, ERA, TD, FIX, EXE).
- Security (
S): fix each finding, or keep it with an inline reason where it's a false positive (fake secrets in tests, repository commands run by tests, fixed container paths). - Asserts outside tests (
S101): replace type-narrowing asserts with explicit checks, without changing any error response. - Prints (
T20): remove debug prints from application code; command-line scripts keep their output, with a reason. - Logging (
LOG,G): module loggers and lazy formatting, with identical message text. - Datetimes (
DTZ): never switch a value between naive and aware; keep naive values that must stay naive, with a reason. - Leftovers (
ERA,TD,FIX,EXE): delete commented-out code, turn TODOs into plain notes or issue links, and match shebangs with the executable bit.
Error responses and published schemas must not change.
- 主要語言
- Python
- 星號
- 18
- 分支
- 33
- 平均合併
- 1 天 20 小時
- 30 天內合併 PR
- 27
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
PolicyEngine/policyengine-api 的其他 Issue
-
難度 1/5 1-3 小時 新手友好度 88/100
PolicyEngine/policyengine-api#3911 ·
維護者通常 2 天內回覆
-
難度 1/5 1 小時以內 新手友好度 82/100
PolicyEngine/policyengine-api#3910 ·
維護者通常 2 天內回覆
-
難度 4/5 3-5 天 新手友好度 22/100
PolicyEngine/policyengine-api#3946 ·
維護者通常 2 天內回覆
-
難度 4/5 3-5 天 新手友好度 22/100
PolicyEngine/policyengine-api#3945 ·
維護者通常 2 天內回覆
-
Register weighted-microdata rules: weights aren't values可能已有人在做 @anth-volk 於 2 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 18/100
PolicyEngine/policyengine-api#3937 ·
維護者通常 2 天內回覆
查看 PolicyEngine/policyengine-api 的全部 Issue
相似的 Issue
-
area: tools documentation good first issue ready for a contributor
難度 2/5 1-3 小時 新手友好度 82/100
eyalgolan/statecraft-israel#873 · 1 則留言 ·
維護者通常 1 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 5 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
bug good first issue
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆