Skip to content

Remove B018 suppressions after adopting skeleton's B018 ignore #774

Open

Description

@jaraco

jaraco/skeleton#220 proposes ignoring B018 (useless-expression) across skeleton-based projects, citing keyring's use of bare attribute access for its side effects. Once that lands, keyring should merge the skeleton update and drop its now-redundant suppressions:

  • keyring/backend.py — cls.priority # noqa: B018
  • keyring/backends/SecretService.py — secretstorage.__name__ # noqa: B018
  • keyring/backends/Windows.py — win32cred.__name__ # noqa: B018 (×2)
  • keyring/core.py — class_.priority # noqa: B018
  • keyring/testing/backend.py — self.keyring.foo # noqa: B018

Leaving the comments in place would trigger RUF100 (unused noqa directive) once B018 is ignored, so this cleanup is required, not just cosmetic.

Ref jaraco/skeleton#112, jaraco/skeleton#210.

🤖 Generated with Claude Code

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