New error code for non-capitalized from-imported names mixed with capitalized ones
When running flufl.testing with something like this:
from mailman.rest.helpers import (
BadRequestError, get_request_params, InvalidParamError, MissingParamError)
results in:
src/mailman/rest/validator.py:25:1: U414 from-imported names are not sorted alphabetically
This error is quite cryptic since the imports are actually sorted alphabetically.
However, the expectation of flufl.testing is (AFAICT) that the imports with Capital first letters all go first, in alphabetical order and then the other ones, again in alphabetical order.
So, something like this:
from mailman.rest.helpers import (
BadRequestError, InvalidParamError, MissingParamError, get_request_params)
passes the check.
There should be a new error code to raise this error instead of mixing it with U414.
Edited by Abhilash Raj