flake8: Add pep8-naming plugin.
Check PEP-8 naming conventions, plugin for flake8 https://pypi.python.org/pypi/pep8-naming/
This commit is contained in:
parent
7e3507aba1
commit
fccde768ed
@ -30,7 +30,7 @@ class FixedDataNetworkReply(QNetworkReply):
|
||||
|
||||
"""QNetworkReply subclass for fixed data."""
|
||||
|
||||
def __init__(self, request, fileData, mimeType, parent=None):
|
||||
def __init__(self, request, fileData, mimeType, parent=None): # noqa
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
|
@ -91,7 +91,7 @@ def check_exclusive(flags, names):
|
||||
argstr))
|
||||
|
||||
|
||||
class register: # pylint: disable=invalid-name
|
||||
class register: # noqa # pylint: disable=invalid-name
|
||||
|
||||
"""Decorator to register a new command handler.
|
||||
|
||||
|
@ -46,7 +46,7 @@ from qutebrowser.utils.usertypes import Completion
|
||||
UNSET = object()
|
||||
|
||||
|
||||
class change_filter: # pylint: disable=invalid-name
|
||||
class change_filter: # noqa # pylint: disable=invalid-name
|
||||
|
||||
"""Decorator to filter calls based on a config section/option matching.
|
||||
|
||||
|
@ -65,7 +65,7 @@ class NotInModeError(Exception):
|
||||
|
||||
def init(win_id, parent):
|
||||
"""Initialize the mode manager and the keyparsers for the given win_id."""
|
||||
KM = usertypes.KeyMode # pylint: disable=invalid-name
|
||||
KM = usertypes.KeyMode # noqa # pylint: disable=invalid-name
|
||||
modeman = ModeManager(win_id, parent)
|
||||
objreg.register('mode-manager', modeman, scope='window', window=win_id)
|
||||
keyparsers = {
|
||||
|
@ -224,7 +224,7 @@ def format_call(func, args=None, kwargs=None, full=True):
|
||||
return '{}({})'.format(name, format_args(args, kwargs))
|
||||
|
||||
|
||||
class log_time: # pylint: disable=invalid-name
|
||||
class log_time: # noqa pylint: disable=invalid-name
|
||||
|
||||
"""Log the time an operation takes.
|
||||
|
||||
|
@ -563,7 +563,7 @@ def disabled_excepthook():
|
||||
sys.excepthook = old_excepthook
|
||||
|
||||
|
||||
class prevent_exceptions: # pylint: disable=invalid-name
|
||||
class prevent_exceptions: # noqa # pylint: disable=invalid-name
|
||||
|
||||
"""Decorator to ignore and log exceptions.
|
||||
|
||||
|
@ -7,5 +7,6 @@ exclude = .venv,.hypothesis,.git,__pycache__,resources.py
|
||||
# E402: module level import not at top of file
|
||||
# E266: too many leading '#' for block comment
|
||||
# F401: Unused import
|
||||
ignore = E128,E226,E265,E501,E402,E266,F401
|
||||
# N802: function name should be lowercase
|
||||
ignore = E128,E226,E265,E501,E402,E266,F401,N802
|
||||
max-complexity = 12
|
||||
|
Loading…
Reference in New Issue
Block a user