Skip to content

Commit

Permalink
separating lint out of test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
miki725 committed Nov 3, 2019
1 parent e94497c commit 376d154
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ kind: pipeline
name: tests

steps:
- name: lint
image: miki725/pre-commit
depends_on:
- clone

- name: python3.8
image: python:3.8
commands:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ setenv =
PYTHONPATH = {toxinidir}
commands =
make install INSTALL_LOG=/dev/null
make check
make clean-build clean-pyc clean-test test
deps =
django18: django<1.9
django18: djangorestframework<3.7
Expand Down
7 changes: 3 additions & 4 deletions url_filter/integrations/drf.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,9 @@ def filter_queryset(self, request, queryset, view):
filter_model = getattr(_filter.Meta, "model", None)
if filter_model and _filter.filter_backend.enforce_same_models:
model = _filter.filter_backend.model
assert issubclass(
model, filter_model
), "FilterSet model {} does not match queryset model {}" "".format(
filter_model, model
assert issubclass(model, filter_model), (
"FilterSet model {} does not match queryset model {}"
"".format(filter_model, model)
)

try:
Expand Down

0 comments on commit 376d154

Please sign in to comment.