Skip to content

Commit

Permalink
fix: update pylintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq committed Sep 10, 2024
1 parent 2368a2a commit 5cdbb76
Showing 1 changed file with 12 additions and 23 deletions.
35 changes: 12 additions & 23 deletions pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,11 @@ disable=
# Never going to use these
# I0011: Locally disabling W0232
# W0141: Used builtin function 'map'
# W0142: Used * or ** magic
# R0921: Abstract class not referenced
# R0922: Abstract class is only referenced 1 times
I0011,W0141,W0142,R0921,R0922,

duplicate-code,
# Django makes classes that trigger these
# W0232: Class has no __init__ method
W0232,

locally-disabled,
bad-builtin,
duplicate-code,
# Might use these when the code is in better shape
# C0302: Too many lines in module
# R0201: Method could be a function
# R0901: Too many ancestors
# R0902: Too many instance attributes
# R0903: Too few public methods (1/2)
Expand All @@ -54,7 +46,7 @@ disable=
# R0912: Too many branches
# R0913: Too many arguments
# R0914: Too many local variables
C0302,R0201,R0901,R0902,R0903,R0904,R0911,R0912,R0913,R0914,
C0302,R0901,R0902,R0903,R0904,R0911,R0912,R0913,R0914,
# W0511: TODOs etc
W0511,
# E1103: maybe no member
Expand All @@ -64,6 +56,14 @@ disable=

# We can decide if names are invalid on our own
invalid-name,
consider-using-f-string,
raise-missing-from,
deprecated-decorator,
invalid-str-returned,
use-yield-from,
consider-using-generator,
use-dict-literal,
not-callable,

[REPORTS]

Expand All @@ -74,11 +74,6 @@ output-format=text
# Include message's id in output
msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}"

# Put messages in a separate file for each module / package specified on the
# command line instead of printing them on stdout. Reports (if any) will be
# written in a file name "pylint_global.[txt|html]".
files-output=no

# Tells whether to display a full report or only the messages
reports=no

Expand Down Expand Up @@ -121,9 +116,6 @@ generated-members=

[BASIC]

# List of builtins function names that should not be used, separated by a comma
bad-functions=map,filter,apply,input

# Regular expression which should only match correct module names
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$

Expand Down Expand Up @@ -241,9 +233,6 @@ max-locals=15
# Maximum number of return / yield for function / method body
max-returns=6

# Maximum number of branch for function / method body
max-branchs=12

# Maximum number of statements in function / method body
max-statements=50

Expand Down

0 comments on commit 5cdbb76

Please sign in to comment.