Fix pylint/flake8 errors

This commit is contained in:
Ryan Roden-Corrent 2017-05-25 07:27:14 -04:00
parent 2c501f7fb7
commit cf89ffa971
5 changed files with 6 additions and 6 deletions

View File

@ -60,10 +60,10 @@ class SqlCategory(QSqlQueryModel):
querystr += ' order by {} {}'.format(sort_by, sort_order)
self._query = sql.Query(querystr)
self._param_count=len(filter_fields)
self._param_count = len(filter_fields)
self.set_pattern('', [0])
def set_pattern(self, pattern, columns_to_filter):
def set_pattern(self, pattern, _columns_to_filter):
"""Set the pattern used to filter results.
Args:

View File

@ -19,13 +19,13 @@
"""Provides access to an in-memory sqlite database."""
import collections
from PyQt5.QtCore import QObject, pyqtSignal
from PyQt5.QtSql import QSqlDatabase, QSqlQuery
from qutebrowser.utils import log
import collections
class SqlException(Exception):

View File

@ -19,8 +19,8 @@
"""Tests for CompletionModel."""
import hypothesis
from unittest import mock
import hypothesis
from hypothesis import strategies
from qutebrowser.completion.models import completionmodel

View File

@ -26,7 +26,6 @@ import pytest
from PyQt5.QtCore import QUrl
from PyQt5.QtWidgets import QTreeView
from qutebrowser.browser import history
from qutebrowser.completion.models import miscmodels, urlmodel, configmodel
from qutebrowser.config import sections, value
from qutebrowser.misc import sql

View File

@ -798,6 +798,7 @@ def test_chromium_version_unpatched(qapp):
assert version._chromium_version() not in ['', 'unknown', 'unavailable']
# pylint: disable=too-many-locals
@pytest.mark.parametrize(['git_commit', 'frozen', 'style', 'with_webkit',
'known_distribution'], [
(True, False, True, True, True), # normal