Skip to content

Fix Ruff LOG015 and C402 violations and remove the Ruff version pin #45

Open

Description

@zhhuabj

Summary

Remove the temporary Ruff version pin added in PR #43 after fixing the lint violations reported by newer Ruff versions.

Context

PR #43 pins Ruff to <=0.14.6 in the pep8 tox environment to keep CI passing without expanding the scope of the stable-branch backport. This should be treated as a temporary workaround.

Details

Running Ruff with LOG015 and C402 enabled reports 46 violations:

  • 45 LOG015 violations from root-logger calls across bridge_datapath.py and external_networking.py
  • 1 C402 violation in bridge_datapath.py that can be rewritten as a dict comprehension

Acceptance criteria

  • Replace root-logger calls with module-level loggers without changing log levels or messages.
  • Rewrite the unnecessary generator as a dict comprehension.
  • Remove the Ruff upper bound from the pep8 tox environment.
  • Verify the lint environment passes with the unpinned Ruff dependency.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions