Open L4rryFisherman opened 4 months ago
Ruff doesn't check type, it only check if it's caps.
Just mark it with noqa
same false positive here:
from django.db.models import Q as Query
imho N811 should not be applied to single character "names", as naming conventions for single character names are ambigous anyways and in this particular case no one can say by just looking at the name if it is a constant or a class. Q
here is a class, yet the above is flaged with N811, taking Q
for a constant.
Maybe it would also be good to use no single character names for variables or classes, but that's another topic.
The line:
flags as
N811
, whereas UUID is a class and not a constant.Command used:
Ruff version:
0.4.8