[Task]: More closely align ruff selection with new defaults
Author: ohemorangeCreated Aug 5, 2026Updated Aug 10, 2026
Task description
In 16.0.0, ruff vastly expanded its set of defaults. For now, we're matching the old rules, since there are many changes to be made. We should apply changes that can be fixed with --fix using the new defaults, and see which others we can fix manually or we disagree with. Changes should be kept as small as possible to make reviewing easier.
Certbot is moving to ruff 16.0.0 in https://github.com/certbot/certbot/pull/10748.
Source: certbot/certbot