-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pylintrc
More file actions
91 lines (71 loc) · 2.8 KB
/
Copy path.pylintrc
File metadata and controls
91 lines (71 loc) · 2.8 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[MASTER]
# Use multiple processes to speed up Pylint
jobs=1
# Pickle collected data for later comparisons
persistent=yes
# Allow loading of arbitrary C extensions
unsafe-load-any-extension=no
[MESSAGES CONTROL]
# Disable overly strict checks that don't fit script-style code
disable=
missing-module-docstring,
missing-function-docstring,
invalid-name, # Allow short variable names like x, y, sr, i
too-many-locals, # Scripts often have many local variables
too-many-statements, # Scripts can be lengthy
too-many-branches, # Complex logic is sometimes necessary
too-few-public-methods, # Allow simple utility classes
line-too-long, # Let formatter handle this
fixme, # Allow TODO/FIXME comments
global-statement, # Sometimes useful in scripts
logging-fstring-interpolation, # f-strings are fine
consider-using-f-string, # Don't force f-string migration
unused-argument, # Common in callbacks/interfaces
redefined-outer-name, # Common pattern in scripts
arguments-differ, # Allow signature variations
protected-access, # Allow _private access when needed
duplicate-code, # Scripts often have similar patterns
trailing-whitespace, # Don't warn about whitespace on blank lines
[REPORTS]
# Don't display full report, just messages
reports=no
# Display message stats
score=yes
[BASIC]
# Good variable names which should always be accepted
good-names=i,j,k,x,y,_,e,sr,df,db,id
# Allow single-letter variable names
variable-rgx=[a-z_][a-z0-9_]{0,30}$
# Allow module names with dashes/underscores
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
# Allow uppercase constants
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__)|([a-z_][a-z0-9_]*))$
[FORMAT]
# Maximum number of characters on a single line (generous for scripts)
max-line-length=200
# Allow the body of an if to be on the same line if there is no else
single-line-if-stmt=yes
[DESIGN]
# Maximum number of arguments for function/method
max-args=8
# Maximum number of attributes for a class
max-attributes=10
# Maximum number of parents for a class
max-parents=7
[IMPORTS]
# Allow wildcard imports (e.g., from module import *)
allow-wildcard-with-all=yes
[SIMILARITIES]
# Minimum lines number of a similarity (increase for scripts)
min-similarity-lines=10
[TYPECHECK]
# Ignore missing imports for these modules (add as needed)
ignored-modules=torch,librosa,chromadb,plexapi
# List of members which are set dynamically and missed by pylint inference
generated-members=torch.*,cv2.*
[VARIABLES]
# Allow unused variables when they start with _
dummy-variables-rgx=_.*
[EXCEPTIONS]
# Exceptions that will emit a warning when caught
overgeneral-exceptions=builtins.BaseException,builtins.Exception