isort: Configure to use single lines

pyproject.toml:
Configure isort to use single lines (one line for each import) to ease
merge conflicts.

keyringctl:
Reformat using new isort settings.
This commit is contained in:
David Runge 2021-10-18 12:58:23 +02:00 committed by Levente Polyak
parent 49ff2df1fc
commit cd0a2005a7
No known key found for this signature in database
GPG Key ID: FC1B547C8D8172C8
2 changed files with 25 additions and 7 deletions

View File

@ -5,15 +5,32 @@
from argparse import ArgumentParser
from collections import defaultdict
from contextlib import contextmanager
from logging import DEBUG, basicConfig, debug, error
from os import chdir, getcwd
from logging import DEBUG
from logging import basicConfig
from logging import debug
from logging import error
from os import chdir
from os import getcwd
from pathlib import Path
from re import escape, split, sub
from re import escape
from re import split
from re import sub
from shutil import copytree
from subprocess import PIPE, CalledProcessError, check_output
from sys import exit, stderr
from tempfile import TemporaryDirectory, mkdtemp
from typing import Dict, Iterable, Iterator, List, Optional, Set, Tuple, Union
from subprocess import PIPE
from subprocess import CalledProcessError
from subprocess import check_output
from sys import exit
from sys import stderr
from tempfile import TemporaryDirectory
from tempfile import mkdtemp
from typing import Dict
from typing import Iterable
from typing import Iterator
from typing import List
from typing import Optional
from typing import Set
from typing import Tuple
from typing import Union
@contextmanager

View File

@ -33,6 +33,7 @@ omit = ["tests/*", ".tox/*"]
[tool.isort]
profile = "black"
multi_line_output = 3
force_single_line = true
[tool.mypy]
ignore_missing_imports = true