Share

ruff config that blocks swallowed exceptions

Open · 4 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

Activity