This is the mess of imports currently at the top of my file:
import argparse from copy import deepcopy from functools import cmp_to_key, partial from itertools import chain import math from multiprocessing import Pool import os import re from typing import Dict, List, Set, Tuple import xml.etree.ElementTree as ET from third_party import Tool
I organised them alphabetically, by package (?) name.
I think it looks extremely ugly.
What are the standard ways to organise this section?
PEP8 (which I have read) is not helpful in this case:
Imports should be grouped in the following order:
Standard library imports.
Related third party imports.
Local application/library specific imports.
You should put a blank line between each group of imports.