isort#

class pysen.ext.isort_wrapper.IsortSetting(force_grid_wrap=0, force_single_line=False, include_trailing_comma=True, known_first_party=None, known_third_party=None, line_length=88, multi_line_output=3, default_section=None, sections=None, use_parentheses=True, ensure_newline_before_comments=None)#
Parameters
  • force_grid_wrap (int) –

  • force_single_line (bool) –

  • include_trailing_comma (bool) –

  • known_first_party (Optional[Set[str]]) –

  • known_third_party (Optional[Set[str]]) –

  • line_length (int) –

  • multi_line_output (int) –

  • default_section (Optional[pysen.ext.isort_wrapper.IsortSectionName]) –

  • sections (Optional[List[pysen.ext.isort_wrapper.IsortSectionName]]) –

  • use_parentheses (bool) –

  • ensure_newline_before_comments (Optional[bool]) –

Return type

None

class pysen.ext.isort_wrapper.IsortSectionName(value)#

An enumeration.

FIRSTPARTY = 'FIRSTPARTY'#
FUTURE = 'FUTURE'#
LOCALFOLDER = 'LOCALFOLDER'#
STDLIB = 'STDLIB'#
THIRDPARTY = 'THIRDPARTY'#