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:
parent
49ff2df1fc
commit
cd0a2005a7
31
keyringctl
31
keyringctl
@ -5,15 +5,32 @@
|
|||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from logging import DEBUG, basicConfig, debug, error
|
from logging import DEBUG
|
||||||
from os import chdir, getcwd
|
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 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 shutil import copytree
|
||||||
from subprocess import PIPE, CalledProcessError, check_output
|
from subprocess import PIPE
|
||||||
from sys import exit, stderr
|
from subprocess import CalledProcessError
|
||||||
from tempfile import TemporaryDirectory, mkdtemp
|
from subprocess import check_output
|
||||||
from typing import Dict, Iterable, Iterator, List, Optional, Set, Tuple, Union
|
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
|
@contextmanager
|
||||||
|
@ -33,6 +33,7 @@ omit = ["tests/*", ".tox/*"]
|
|||||||
[tool.isort]
|
[tool.isort]
|
||||||
profile = "black"
|
profile = "black"
|
||||||
multi_line_output = 3
|
multi_line_output = 3
|
||||||
|
force_single_line = true
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
ignore_missing_imports = true
|
ignore_missing_imports = true
|
||||||
|
Loading…
Reference in New Issue
Block a user