> > I think it's rare enough that personally, I would have liked to have a
> > Flake8 / PyLint rule like that enforces it, and allow ignoring it
> > with a comment. (As much as I hate Lint ignore comments.)
>
> That makes sense. And you know, flake8 supports plugins... a couple of
> web searches and "pip search flake8 | grep {raise,from,chain}" didn't
> pull anything which seems relevant, but if so, it can be written.
>

As a weekend project, I wrote a flake8 plugin to handle this at:
https://pypi.org/project/flake8-raise/

I'm not advocating this necessarily included by the Django test suite, but
it can be used to review the PR. Either way, it was fun to write.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CADhq2b4m40efQkorgji9-erXri9qSAb1VJBv%3DZ3HrOL6ksOJAQ%40mail.gmail.com.

Reply via email to