Skip to content

Commit

Permalink
Check isort in CI (#913)
Browse files Browse the repository at this point in the history
* Check isort in CI

* Fix incorrectly sorted imports
  • Loading branch information
JayH5 committed Apr 24, 2020
1 parent 2f20e10 commit a42657d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/test
Expand Up @@ -13,4 +13,5 @@ set -x
PYTHONPATH=. ${PREFIX}pytest --ignore venv --cov-config tests/.ignore_lifespan -W ignore::DeprecationWarning --cov=starlette --cov=tests --cov-fail-under=100 --cov-report=term-missing ${@}
${PREFIX}mypy starlette --ignore-missing-imports --disallow-untyped-defs
${PREFIX}autoflake --recursive starlette tests setup.py
${PREFIX}isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --check starlette tests setup.py
${PREFIX}black starlette tests setup.py --check
2 changes: 1 addition & 1 deletion starlette/requests.py
@@ -1,8 +1,8 @@
import asyncio
from http import cookies as http_cookies
import json
import typing
from collections.abc import Mapping
from http import cookies as http_cookies

from starlette.datastructures import URL, Address, FormData, Headers, QueryParams, State
from starlette.formparsers import FormParser, MultiPartParser
Expand Down

0 comments on commit a42657d

Please sign in to comment.