Skip to content

Commit

Permalink
Compatibility with isort v5.1 (#1469)
Browse files Browse the repository at this point in the history
  • Loading branch information
smithdc1 committed Jul 18, 2020
1 parent fa318e6 commit 4bcab96
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
env: DJANGO="Django==2.2.*"

- stage: lint
install: pip install -U -e .[tests] black pyflakes 'isort<5'
install: pip install -U -e .[tests] black pyflakes isort
script:
- pyflakes channels tests
- black --check --diff channels tests
Expand Down
1 change: 1 addition & 0 deletions channels/hacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ def monkeypatch_django():
from django.contrib.staticfiles.management.commands.runserver import (
Command as StaticRunserverCommand,
)

from .management.commands.runserver import Command as RunserverCommand

StaticRunserverCommand.__bases__ = (RunserverCommand,)
1 change: 0 additions & 1 deletion channels/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from channels.http import AsgiHandler


"""
All Routing instances inside this file are also valid ASGI applications - with
new Channels routing, whatever you end up with as the top level object is just
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ known_third_party = django
known_first_party = channels,daphne,asgiref
multi_line_output = 3
line_length = 88
force_grid_wrap=0
use_parentheses=True

[bdist_wheel]
universal=1
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ deps =
commands =
pyflakes channels tests
black --check channels tests
isort --check-only --diff --recursive channels tests
isort --check-only --diff channels tests

0 comments on commit 4bcab96

Please sign in to comment.