Skip to content

Commit 641d9de

Browse files
committed
fix: suppress E731/E741 in ruff (lambda callbacks, QEC math single-letter vars)
1 parent 9113bb9 commit 641d9de

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ target-version = "py39"
122122

123123
[tool.ruff.lint]
124124
# E702: semicolons used intentionally for chained one-liners in plotting helpers.
125+
# E731: lambda assignments used for compact callback tables in a few helpers.
126+
# E741: single-letter variable names (l, I, O) are domain-conventional in QEC math.
125127
# These are minor style choices that do not affect correctness.
126-
ignore = ["E702"]
128+
ignore = ["E702", "E731", "E741"]
127129

128130
[tool.ruff.lint.per-file-ignores]
129131
# __init__: late imports (E402) are intentional (runtime optional deps).

0 commit comments

Comments
 (0)