-
Type:
Task
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Infrastructure
-
None
-
Python Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Context
Ruff 0.16 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
Definition of done
- Ruff pinned to 0.16.0; config updated so the new defaults are adopted with zero loss of currently-enforced rules and bandit fully intact.
- Add support for the datetime rule set; everything else new is suppressed with a follow-up ticket to enable incrementally.
- Lint and typing checks pass clean.
Pitfalls
Ensure we do not lose existing rule set support.
Do not attempt to take on too big of a change in this PR.
- is depended on by
-
PYTHON-6177 Audit suppressed ruff rules
-
- Closed
-
- split to
-
PYTHON-6238 Enable ruff BLE rules
-
- Closed
-
-
PYTHON-6239 Enable ruff FURB rules
-
- Closed
-
-
PYTHON-6240 Enable ruff LOG rules
-
- Closed
-
-
PYTHON-6241 Enable ruff PERF rules
-
- Closed
-
-
PYTHON-6242 Enable ruff PYI rules
-
- Closed
-
-
PYTHON-6243 Enable ruff TC rules
-
- Closed
-
-
PYTHON-6244 Enable ruff TRY rules
-
- Closed
-
-
PYTHON-6245 Enable ruff INT rules
-
- Closed
-
-
PYTHON-6246 Enable ruff FA rules
-
- Closed
-
-
PYTHON-6247 Enable ruff ISC rules
-
- Closed
-
-
PYTHON-6248 Enable ruff FLY rules
-
- Closed
-
-
PYTHON-6249 Enable ruff D rules
-
- Closed
-
-
PYTHON-6250 Enable ruff N rules
-
- Closed
-