grahamullrich
10/07/2017, 9:25 PMline_length
parameter, defaults to 79, and only if an import line is greater than line_length
will it produce multi-line imports. So this 78 character import stays on one line:
from django.views.generic import CreateView, DeleteView, DetailView, FormView
grahamullrich
10/07/2017, 9:26 PMfrom django.views.generic import (
CreateView,
DeleteView,
DetailView,
FormView,
)
paltman
10/07/2017, 9:28 PMgrahamullrich
10/07/2017, 9:28 PMline_length=60
paltman
10/07/2017, 9:29 PMgrahamullrich
10/07/2017, 9:29 PMline_length
. multi_line_output=3
simply specifies the format used when import line is too long.paltman
10/07/2017, 9:29 PMpaltman
10/07/2017, 9:30 PMpaltman
10/07/2017, 9:30 PMgrahamullrich
10/07/2017, 9:30 PMpaltman
10/07/2017, 9:30 PMpaltman
10/07/2017, 9:30 PMgrahamullrich
10/07/2017, 9:30 PMline_length=5
then every import is wrapped multi-linepaltman
10/07/2017, 9:31 PMgrahamullrich
10/07/2017, 9:31 PMgrahamullrich
10/07/2017, 9:33 PMgrahamullrich
10/07/2017, 9:33 PMisort
may use: https://github.com/timothycrosley/isort/wiki/isort-Settingsgrahamullrich
10/07/2017, 9:35 PMtox.ini
, but https://github.com/timothycrosley/isort#configuring-isortpaltman
10/07/2017, 9:35 PMpaltman
10/07/2017, 9:35 PMgrahamullrich
10/07/2017, 9:35 PMgrahamullrich
10/07/2017, 9:39 PM-sp <settings file>
paltman
10/08/2017, 10:11 PMpaltman
10/08/2017, 10:12 PMisort:skip
comments aren't being respectedpaltman
10/08/2017, 10:12 PMsix
imports properlypaltman
10/08/2017, 10:12 PMpaltman
10/08/2017, 10:15 PMpaltman
10/08/2017, 10:15 PMpaltman
10/08/2017, 10:17 PMpaltman
10/08/2017, 10:17 PM