Commit graph

1 commit

Author SHA1 Message Date
mateo-berri
d2e5d604e1
chore: add vulture dead-code detection and remove unreachable code
Add vulture as the Python analogue of the frontend's knip: a make target
(lint-deadcode), [tool.vulture] config, and a committed allowlist baseline
(.vulture_allowlist.py) that ratchets like the existing ruff/basedpyright
budgets. lint-deadcode-update regenerates the baseline.

Remove the unreachable statements vulture surfaced at 100% confidence:
duplicate returns, dead branches after unconditional returns, a redundant
trailing pass, and a dead post-call logging block in the sagemaker handler.
All are provably unreachable, so behavior is unchanged.
2026-06-24 15:28:44 +00:00