File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 python -m pip install --upgrade pip
2828 pip install ruff
2929 - name : Lint with ruff
30- run : |
31- ruff check .
30+ run : ruff check . --ignore SIM103
31+ - name : Lint advisories (non-blocking)
32+ run : ruff check . --select SIM103 || true
3233
3334 test :
3435 needs : lint
Original file line number Diff line number Diff line change @@ -115,7 +115,8 @@ ignore = [
115115 " SIM118" , # in-dict-keys — explicit .keys() marks the variable as a dictlike
116116 " SIM300" , # yoda conditions — natural reading order preferred
117117 " SIM910" , # dict.get with None default — explicit None documents programmer intent
118- " SIM103" , # return condition directly — multi-guard patterns; autofix breaks visual consistency
118+ # Note: SIM103 (return condition directly) is intentionally NOT ignored here.
119+ # It is enabled as an advisory — CI runs it in a non-failing second pass.
119120]
120121
121122[tool .ruff .lint .per-file-ignores ]
You can’t perform that action at this time.
0 commit comments