vimiv-qt/.pylintrc

61 lines
1.5 KiB
INI

# vim: ft=dosini fileencoding=utf-8:
[MASTER]
extension-pkg-whitelist=PyQt5,
vimiv.imutils._c_manipulate
# Add custom checkers
init-hook='import sys; sys.path.append("./scripts/pylint_checkers/")'
load-plugins=check_count,
check_docstring,
check_header,
pylint.extensions.emptystring,
pylint.extensions.check_elif,
pylint.extensions.overlapping_exceptions,
[MESSAGES CONTROL]
enable=all
disable=fixme,
cyclic-import,
global-statement,
locally-disabled,
too-many-ancestors,
too-few-public-methods,
blacklisted-name,
file-ignored,
wrong-import-position,
ungrouped-imports,
suppressed-message,
arguments-differ,
duplicate-code,
import-outside-toplevel,
raise-missing-from,
arguments-renamed,
[BASIC]
function-rgx=[a-z_][a-z0-9_]{2,50}$
const-rgx=[A-Za-z_][A-Za-z0-9_]{0,30}$
class-const-rgx=[A-Za-z_][A-Za-z0-9_]{0,30}$
method-rgx=[a-z_][A-Za-z0-9_]{2,50}$
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$|^test_|decorator|inside|^_on)
[FORMAT]
max-line-length=88
max-module-lines=1000
ignore-long-lines=(<?https?://|^# Copyright 201\d|# (pylint|flake8): disable=)
expected-line-ending-format=LF
[SIMILARITIES]
min-similarity-lines=4
[VARIABLES]
dummy-variables-rgx=_.*
[DESIGN]
max-args=10
[CLASSES]
valid-metaclass-classmethod-first-arg=cls