PYTHON-5964ClosedDone
Adopt ruff 0.17 default rule set in addition to existing rule sets
h3. Context {color:#505f79}[Ruff 0.16|https://astral.sh/blog/ruff-v0.16.0] enables 413 rules by default, up from 59 in previous versions. We should enable those rules where appropriate while preserving our existing rule set, especially including the "S" security rule set. Full details and verification: https://gist.github.com/blink1073/05b51a7dc689593cd3baa1a67ba083b1{color} h3. Definition of done {color:#505f79} - Ruff pinned to 0.16.0; config updated so the new defaults are adopted wit