Skip to content

Commit

Permalink
Fix and simplify isort config
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Oct 24, 2019
1 parent 1dad151 commit 5401659
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .isort.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88
known_third_party=dateutil,factory,faker,hypothesis,pytest,slugify,webtest,zope
default_section=THIRDPARTY
known_first_party=bouncer,tests
2 changes: 1 addition & 1 deletion tests/bouncer/search_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from elasticsearch import Elasticsearch
from mock import ANY, MagicMock, patch

from bouncer.search import get_client, includeme
from mock import ANY, MagicMock, patch


class TestGetClient(object):
Expand Down
2 changes: 1 addition & 1 deletion tests/bouncer/views_test.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import json

import mock
import pytest
from elasticsearch import exceptions as es_exceptions
from pyramid import httpexceptions, testing

import mock
from bouncer import util, views


Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ deps =
{tests,docstrings,checkdocstrings}: mock
lint: flake8
{format,checkformatting}: black
{format,checkformatting}: isort[requirements]
{format,checkformatting}: isort
coverage: coverage
codecov: codecov
docstrings: sphinx-autobuild
Expand Down

0 comments on commit 5401659

Please sign in to comment.