From 04ca95aaa1ce8fd470efbbbb287c444c90b50d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20K=C3=A4ufl?= Date: Sat, 18 Jul 2020 11:04:23 +0200 Subject: [PATCH] Fix compatibility with isort 5 --- .travis.yml | 2 +- daphne/testing.py | 4 ++-- setup.cfg | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index bf7be68..c690b3b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,7 +33,7 @@ jobs: script: - pyflakes daphne tests - black --check daphne tests - - isort --check-only --diff --recursive daphne tests + - isort --check-only --diff daphne tests - stage: release python: 3.6 diff --git a/daphne/testing.py b/daphne/testing.py index 7cc1182..c302045 100644 --- a/daphne/testing.py +++ b/daphne/testing.py @@ -127,8 +127,8 @@ class DaphneProcess(multiprocessing.Process): from twisted.internet import reactor - from .server import Server from .endpoints import build_endpoint_description_strings + from .server import Server try: # Create the server class @@ -266,8 +266,8 @@ class TestApplication: def _reinstall_reactor(): - import sys import asyncio + import sys from twisted.internet import asyncioreactor diff --git a/setup.cfg b/setup.cfg index e50af68..e98850c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -7,7 +7,7 @@ addopts = tests/ [isort] include_trailing_comma = True 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 [flake8]