Fix lint.

This commit is contained in:
Florian Bruhin 2015-07-24 18:01:52 +02:00
parent 44bf4ae883
commit 694fbe053d
5 changed files with 6 additions and 2 deletions

View File

@ -19,6 +19,7 @@ pep8ignore =
E266 # too many leading '#' for block comment E266 # too many leading '#' for block comment
W503 # line break before binary operator W503 # line break before binary operator
resources.py ALL resources.py ALL
.hypothesis/* ALL
mccabe-complexity = 12 mccabe-complexity = 12
qt_log_level_fail = WARNING qt_log_level_fail = WARNING
qt_log_ignore = qt_log_ignore =

View File

@ -547,7 +547,7 @@ class Command(BaseType):
if not value: if not value:
return return
splitted = value.split() 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!") raise configexc.ValidationError(value, "must be a valid command!")
def complete(self): def complete(self):

View File

@ -16,6 +16,8 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>. # along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
# pylint: disable=protected-access
"""Tests for qutebrowser.config.configtypes.""" """Tests for qutebrowser.config.configtypes."""
import re import re

View File

@ -29,7 +29,7 @@ from qutebrowser.config import configtypes, configexc
def gen_classes(): 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: if member is configtypes.BaseType:
pass pass
elif member is configtypes.MappingType: elif member is configtypes.MappingType:

View File

@ -82,6 +82,7 @@ deps =
astroid==1.3.6 astroid==1.3.6
beautifulsoup4==4.4.0 beautifulsoup4==4.4.0
pylint==1.4.4 pylint==1.4.4
hypothesis==1.8.4
logilab-common==1.0.2 logilab-common==1.0.2
six==1.9.0 six==1.9.0
commands = commands =