Configure isort to be black compatible

See https://black.readthedocs.io/en/stable/compatible_configs.html
This commit is contained in:
Laurent Savaete
2020-10-01 17:11:55 +01:00
parent da9cba95e6
commit b344000524
2 changed files with 21 additions and 2 deletions

View File

@@ -35,6 +35,14 @@ mkautodoc = "^0.1.0"
[tool.black]
line-length = 88
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

View File

@@ -13,8 +13,19 @@ import time
import warnings
from email.utils import formatdate, parsedate_to_datetime
from functools import wraps
from typing import (Any, Awaitable, Callable, Dict, List, Optional, Set, Tuple,
Type, TypeVar, Union)
from typing import (
Any,
Awaitable,
Callable,
Dict,
List,
Optional,
Set,
Tuple,
Type,
TypeVar,
Union,
)
from limits import RateLimitItem # type: ignore
from limits.errors import ConfigurationError # type: ignore