-
Notifications
You must be signed in to change notification settings - Fork 14
/
.pylintrc
63 lines (55 loc) · 1.59 KB
/
.pylintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# 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.check_elif,
pylint.extensions.overlapping_exceptions,
pylint.extensions.for_any_all,
[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=|# type: ignore)
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
[TYPECHECK]
ignored-modules=PyQt5,PyQt6,PySide6