Skip to content

Commit b2f82aa

Browse files
Remove isort specific .editorconfig settings; fix __init__.py file to be compatible with both isort and black
1 parent 1f36f80 commit b2f82aa

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.editorconfig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
root = true
22

33
[*.py]
4-
max_line_length = 120
4+
max_line_length = 100
55
indent_style = space
66
indent_size = 4
77
ignore_frosted_errors = E103
8-
skip = runtests.py,build
9-
balanced_wrapping = true
10-
not_skip = __init__.py

hug/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@
8989
)
9090
from hug.types import create as type
9191

92+
# The following imports must be imported last for defaults to have access to all modules
9293
from hug import development_runner # isort:skip
93-
from hug import (
94-
defaults,
95-
) # isort:skip - must be imported last for defaults to have access to all modules
94+
from hug import defaults # isort:skip
95+
9696

9797
try: # pragma: no cover - defaulting to uvloop if it is installed
9898
import uvloop

0 commit comments

Comments
 (0)