Skip to content

Commit 3a59c44

Browse files
code style fixes
1 parent cbfba59 commit 3a59c44

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

src/django_elasticsearch_dsl_drf/filter_backends/search/multi_match.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ class MultiMatchSearchFilterBackend(BaseSearchFilterBackend):
6262
# )
6363
#
6464
# if __queries:
65-
# # LOGGER.debug(six.moves.reduce(operator.or_, __queries).to_dict())
65+
# # LOGGER.debug(
66+
# # six.moves.reduce(operator.or_, __queries).to_dict()
67+
# # )
6668
#
6769
# # Multiple multi match queries are not supported. We pick the
6870
# # first one only.

src/django_elasticsearch_dsl_drf/filter_backends/search/query_backends/multi_match.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ def construct_search(cls, request, view, search_backend):
111111
if __len_values > 1:
112112
_field, value = __values
113113
__search_term = value
114-
fields = search_backend.split_lookup_complex_multiple_value(_field)
114+
fields = search_backend.split_lookup_complex_multiple_value(
115+
_field
116+
)
115117
for field in fields:
116118
if field in view_search_fields:
117119
if __is_complex:

src/django_elasticsearch_dsl_drf/filter_backends/search/simple_query_string.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ class SimpleQueryStringSearchFilterBackend(BaseSearchFilterBackend):
6363
# )
6464
#
6565
# if __queries:
66-
# # LOGGER.debug(six.moves.reduce(operator.or_, __queries).to_dict())
66+
# # LOGGER.debug(
67+
# # six.moves.reduce(operator.or_, __queries).to_dict()
68+
# # )
6769
#
6870
# # Multiple multi match queries are not supported. We pick the
6971
# # first one only.

src/django_elasticsearch_dsl_drf/filter_backends/suggester/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Suggester filtering backends.
33
"""
44

5-
from .functional import *
6-
from .native import *
5+
from .functional import FunctionalSuggesterFilterBackend
6+
from .native import SuggesterFilterBackend
77

88
__title__ = 'django_elasticsearch_dsl_drf.filter_backends.suggester'
99
__author__ = 'Artur Barseghyan <[email protected]>'

src/django_elasticsearch_dsl_drf/tests/test_faceted_search.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ def _list_results_with_facets(self):
157157
1
158158
)
159159

160-
161160
def test_list_results_with_facets(self):
162161
"""Test list results with facets."""
163162
return self._list_results_with_facets()

src/django_elasticsearch_dsl_drf/tests/test_filtering_nested.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,9 @@ def test_field_filter_contains(self):
501501
# http://localhost:8000/api/users/?id__gte=10
502502
# :return:
503503
# """
504-
# return self._field_filter_gte_lte('id', self.in_progress[0].id, 'gte')
504+
# return self._field_filter_gte_lte(
505+
# 'id', self.in_progress[0].id, 'gte'
506+
# )
505507
#
506508
# def test_field_filter_lt(self):
507509
# """Field filter lt.
@@ -537,7 +539,9 @@ def test_field_filter_contains(self):
537539
# http://localhost:8000/api/users/?id__lte=10
538540
# :return:
539541
# """
540-
# return self._field_filter_gte_lte('id', self.in_progress[0].id, 'lte')
542+
# return self._field_filter_gte_lte(
543+
# 'id', self.in_progress[0].id, 'lte'
544+
# )
541545
#
542546
# def test_ids_filter(self):
543547
# """Test ids filter.

0 commit comments

Comments
 (0)