Skip to content

Add support for rule aliasing #2186

@charliermarsh

Description

@charliermarsh

This is known thing we're working on and have mentioned in a bunch of other issues and PRs.

Apart from tracking the implementation, I want to use this issue to catalog any known aliases:

  • PGH002 (pygrep-hooks) is an alias of G010 (flake8-logging-format)
  • B904 is an alias of TRY200 (see: Implement flake8-raise #2347)
  • R100 (flake8-raise) is an alias of TRY200
  • R101 (flake8-raise) is an alias of TRY201

These aren't one-to-one-aliases, but:

  • UP031 and UP032 reimplement flynt
  • RUF100 reimplements yesqa

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreRelated to core functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions