qutebrowser/.pylintrc

79 lines
2.0 KiB
INI
Raw Normal View History

2014-06-19 09:04:37 +02:00
# vim: ft=dosini fileencoding=utf-8:
2014-05-15 08:11:00 +02:00
[MASTER]
ignore=resources.py
extension-pkg-whitelist=PyQt5,sip
load-plugins=qute_pylint.config,
qute_pylint.modeline,
qute_pylint.openencoding,
2016-07-11 13:12:52 +02:00
qute_pylint.settrace,
2016-07-11 13:47:18 +02:00
pylint.extensions.bad_builtin,
pylint.extensions.docstyle
2016-07-20 15:51:57 +02:00
persistent=n
2014-05-15 08:11:00 +02:00
2014-04-16 11:05:58 +02:00
[MESSAGES CONTROL]
enable=all
2014-04-16 11:05:58 +02:00
disable=no-self-use,
fixme,
global-statement,
locally-disabled,
locally-enabled,
2014-04-16 11:05:58 +02:00
too-many-ancestors,
too-few-public-methods,
2014-04-28 00:05:14 +02:00
too-many-public-methods,
2014-04-29 08:38:01 +02:00
cyclic-import,
bad-continuation,
too-many-instance-attributes,
2014-08-05 21:09:55 +02:00
blacklisted-name,
too-many-lines,
logging-format-interpolation,
2015-03-11 20:14:39 +01:00
broad-except,
bare-except,
eval-used,
exec-used,
2015-11-30 07:16:24 +01:00
file-ignored,
wrong-import-order,
ungrouped-imports,
redefined-variable-type,
suppressed-message,
too-many-return-statements,
duplicate-code,
wrong-import-position
2014-04-16 11:05:58 +02:00
[BASIC]
function-rgx=[a-z_][a-z0-9_]{2,50}$
2014-04-16 11:05:58 +02:00
const-rgx=[A-Za-z_][A-Za-z0-9_]{0,30}$
2016-07-05 20:11:42 +02:00
method-rgx=[a-z_][A-Za-z0-9_]{1,50}$
2014-04-16 11:05:58 +02:00
attr-rgx=[a-z_][a-z0-9_]{0,30}$
argument-rgx=[a-z_][a-z0-9_]{0,30}$
variable-rgx=[a-z_][a-z0-9_]{0,30}$
docstring-min-length=3
no-docstring-rgx=(^_|^main$)
2014-04-16 11:05:58 +02:00
[FORMAT]
max-line-length=79
ignore-long-lines=(<?https?://|^# Copyright 201\d|# (pylint|flake8): disable=)
expected-line-ending-format=LF
2014-04-16 11:05:58 +02:00
2014-04-16 16:16:29 +02:00
[SIMILARITIES]
min-similarity-lines=8
2014-04-16 16:16:29 +02:00
2014-04-16 11:05:58 +02:00
[VARIABLES]
2014-04-22 17:53:27 +02:00
dummy-variables-rgx=_.*
2014-04-16 11:05:58 +02:00
[DESIGN]
max-args=10
2014-09-04 08:00:05 +02:00
[CLASSES]
valid-metaclass-classmethod-first-arg=cls
2014-09-04 08:00:05 +02:00
[TYPECHECK]
# WORKAROUND for https://github.com/PyCQA/astroid/pull/357
ignored-modules=pytest
# MsgType added as WORKAROUND for
# https://bitbucket.org/logilab/pylint/issues/690/
2015-11-30 20:31:49 +01:00
# UnsetObject because pylint infers any objreg.get(...) as UnsetObject.
ignored-classes=qutebrowser.utils.objreg.UnsetObject,
qutebrowser.browser.webkit.webelem.WebElementWrapper,
scripts.dev.check_coverage.MsgType