Skip to content

Add option to ignore N812 for specific packages #226

Open

Description

This typical ML idiom:
import torch.nn.functional as F (see https://github.com/pytorch/examples/blob/main/mnist/main.py#L5)

gets flagged as:
N812 Lowercase functional imported as non-lowercase 'F'

I would like to have an option to enable using this specific package without having to write noqa on every import line or disabling N812 entirely. Is it possible?

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

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