Open usamec opened 10 months ago
This typical ML idiom: import torch.nn.functional as F (see https://github.com/pytorch/examples/blob/main/mnist/main.py#L5)
import torch.nn.functional as F
gets flagged as: N812 Lowercasefunctionalimported as non-lowercase 'F'
N812 Lowercase
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?
noqa
Also when using lightning, I get: N812 Lowercase lightning imported as non-lowercase L
lightning
L
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
functionalimported 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?