Marked as helpful by the asker
Copilot completes patterns it sees in the file. Give it a better pattern to copy:
- Add a
ruffrule that fails CI:BLE001(blind except) andS110(try-except-pass). Now the suggestion cannot be merged. - Put one correct handler near the top of common modules; Copilot mirrors nearby code more than comments.
Linters beat prompts for habits.