Fix compatibility with isort 5

This commit is contained in:
Michael Käufl 2020-07-18 11:04:23 +02:00
parent 9838a173d7
commit 04ca95aaa1
No known key found for this signature in database
GPG Key ID: 30274591B981122A
3 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ jobs:
script: script:
- pyflakes daphne tests - pyflakes daphne tests
- black --check daphne tests - black --check daphne tests
- isort --check-only --diff --recursive daphne tests - isort --check-only --diff daphne tests
- stage: release - stage: release
python: 3.6 python: 3.6

View File

@ -127,8 +127,8 @@ class DaphneProcess(multiprocessing.Process):
from twisted.internet import reactor from twisted.internet import reactor
from .server import Server
from .endpoints import build_endpoint_description_strings from .endpoints import build_endpoint_description_strings
from .server import Server
try: try:
# Create the server class # Create the server class
@ -266,8 +266,8 @@ class TestApplication:
def _reinstall_reactor(): def _reinstall_reactor():
import sys
import asyncio import asyncio
import sys
from twisted.internet import asyncioreactor from twisted.internet import asyncioreactor

View File

@ -7,7 +7,7 @@ addopts = tests/
[isort] [isort]
include_trailing_comma = True include_trailing_comma = True
multi_line_output = 3 multi_line_output = 3
known_first_party = channels,daphne,asgiref,channels_redis known_first_party = channels,daphne,asgiref,channels_redis,http_base,http_strategies
line_length = 88 line_length = 88
[flake8] [flake8]