Demo, all content is generated
Share

ruff config that blocks swallowed exceptions

Open · 188 views · asked by marco_py · edited

Copilot will keep suggesting except: pass. This makes it unmergeable, which is the only thing that works.

Snippet
Copied 6 times
# pyproject.toml
[tool.ruff.lint]
select = ["E", "F", "BLE", "S110", "S112"]
# BLE001: blind except Exception
# S110: try-except-pass
# S112: try-except-continue
Comment
S112 is the one I didn't know. Adding. bytebarista · edited

Activity