Fix lint.
This commit is contained in:
parent
44bf4ae883
commit
694fbe053d
@ -19,6 +19,7 @@ pep8ignore =
|
||||
E266 # too many leading '#' for block comment
|
||||
W503 # line break before binary operator
|
||||
resources.py ALL
|
||||
.hypothesis/* ALL
|
||||
mccabe-complexity = 12
|
||||
qt_log_level_fail = WARNING
|
||||
qt_log_ignore =
|
||||
|
@ -547,7 +547,7 @@ class Command(BaseType):
|
||||
if not value:
|
||||
return
|
||||
splitted = value.split()
|
||||
if not splitted or splitted[0] not in cmdutils.cmd_dict:
|
||||
if not splitted or splitted[0] not in cmdutils.cmd_dict:
|
||||
raise configexc.ValidationError(value, "must be a valid command!")
|
||||
|
||||
def complete(self):
|
||||
|
@ -16,6 +16,8 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# pylint: disable=protected-access
|
||||
|
||||
"""Tests for qutebrowser.config.configtypes."""
|
||||
|
||||
import re
|
||||
|
@ -29,7 +29,7 @@ from qutebrowser.config import configtypes, configexc
|
||||
|
||||
|
||||
def gen_classes():
|
||||
for name, member in inspect.getmembers(configtypes, inspect.isclass):
|
||||
for _name, member in inspect.getmembers(configtypes, inspect.isclass):
|
||||
if member is configtypes.BaseType:
|
||||
pass
|
||||
elif member is configtypes.MappingType:
|
||||
|
Loading…
Reference in New Issue
Block a user