You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
style(test): ruff noqa: B010 setattr sweep on hardening modules
Sibling session's hardening money contract commits (b1d54fe,
e2f413b and the rest of the 8-commit hardening series) used
direct attribute assignment (`fn._nullrun_extractor = impact`)
for stamping the sensitive-call extractor onto the wrapped
function. ruff's B010 rule fires on these — `setattr` with a
constant attribute name is the same as direct assignment,
ruff says, so use the simpler form.
This commit applies ruff's autofix on the leftover hardening
files (test_money_hardening, test_business_impact, etc.) to
keep `ruff check tests/` green without re-introducing the
mypy `attr-defined` error on `fn._nullrun_extractor = impact`
(which is why decorators.py uses `setattr` + `# noqa: B010`
in the same commit as the 0.14.0 bump).
Mechanical ruff --fix output. No behaviour change.
Verified:
ruff check src/ tests/ → All checks passed
mypy src/ → Success: no issues found in 36 source files
0 commit comments