Skip to content

Commit e5d8779

Browse files
Technologicatclaude
andcommitted
ruff: re-enable SIM103 as non-blocking CI advisory
Two-pass CI: hard errors first, then SIM103 informational. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent db57680 commit e5d8779

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ jobs:
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

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)