Skip to content

Sourcery should ignore # noqa lines #379

Open
@Bilbottom

Description

@Bilbottom

Checklist

  • This is a new feature, not a refactoring suggestion
  • I have checked for this feature in the Sourcery documentation
  • I have checked there are no open requests referencing the same feature

Description

This might be a design choice (in which case, close this immediately 😋), but currently Sourcery doesn't ignore lines with the # noqa trailing comment. Although # noqa isn't a recommended way of suppressing QA warnings, there are occasional places where it's helpful.

It would be awesome if both the CLI and the IDE interfaces would ignore lines with the # noqa trailing comment. A minimal example in PyCharm to show that this currently isn't the case is in the screenshot below:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions