ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Infrastructure
    • None
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      PYTHON-5964 adopts the ruff 0.16 default rule set and suppresses the newly defaulted categories. That suppresses ~376 existing violations.

      Violation counts and verification: ruff 0.16 upgrade plan gist.

      PYTHON-6164 (PR #3126) dropped the stale py39 target-version. That change newly activates UP035, UP041, ASYNC109, UP042, UP017, and B905, which the PR ignores rather than fixes.

      Definition of done


      - Each category suppressed in PYTHON-5964 is either enabled with its violations fixed or kept ignored with a documented rationale in pyproject.toml.
      - Each rule ignored in PYTHON-6164 (UP035, UP041, ASYNC109, UP042, UP017, B905) is either enabled and fixed or confirmed as a permanent ignore with a documented rationale.
      - Lint and typing checks pass clean.

      Pitfalls


      - Some ignores are deliberate: ASYNC109 conflicts with CSOT timeout semantics, and UP042 changes _str_ behavior. Do not change runtime behavior to satisfy a rule.
      - Enable categories one at a time to keep PRs reviewable.

            Assignee:
            Unassigned
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: