#23860: Document the preferred imports order
-------------------------------+-------------------------------------
     Reporter:  wrwrwr         |                    Owner:  timgraham
         Type:  New feature    |                   Status:  assigned
    Component:  Documentation  |                  Version:  master
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  1
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+-------------------------------------

Comment (by wrwrwr):

 Good idea. I've been playing with `isort` a bit and prepared some `flake8`
 / `isort` [https://github.com/wrwrwr/django/compare/feature/git-hooks pre-
 commit hooks] for those on the other side of the looking-glass. Maybe
 you'll find the
 
[https://github.com/wrwrwr/django/commit/702be04564d107673c7dee2e116292f612761c03
 isort config] useful. The convention would need some amending to make it
 work: -- putting "import" before "from" statements, -- choosing a slightly
 different line breaking style, -- sorting objects into constants, classes,
 modules & other objects (case based).

--
Ticket URL: <https://code.djangoproject.com/ticket/23860#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.a62753893bfef215d6fd8f285a38b1be%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to