mirror of
https://github.com/django/daphne.git
synced 2025-07-27 07:29:46 +03:00
Fix compatibility with isort 5
This commit is contained in:
parent
9838a173d7
commit
04ca95aaa1
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user