-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pylintrc
33 lines (30 loc) · 1.41 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
[MESSAGES CONTROL]
# We disable the following inspections:
# 1. f-string-without-interpolation (we allow f-strings that don't do any
# formatting for consistent looks and for future safety)
# 2. logging-fstring-interpolation ("Use lazy % formatting in logging functions")
# 3. inherit-non-class ("Inheriting 'NamedTuple', which is not a class" false
# positive, see: https://github.com/PyCQA/pylint/issues/3876)
# 4. too-few-public-methods (produces false positives)
# 5. fixme (left 'TODO' lines)
# 6. missing-function-docstring (Missing function or method docstring)
# 7. import-error ("Unable to import")
# 8. no-member
# 9. c-extension-no-member
disable=broad-exception-raised,f-string-without-interpolation,logging-fstring-interpolation,inherit-non-class,too-few-public-methods,fixme,E0401,E1101,I1101
# Overriding variable name patterns to allow short 1- or 2-letter variables
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}$
# Maximum number of characters on a single line. Default for black, see:
# https://black.readthedocs.io/en/stable/the_black_code_style.html#line-length
max-line-length=88
[DESIGN]
# Maximum number of locals for function / method body
max-locals=25
# Maximum number of arguments for function / method
max-args=10
# Maximum number of statements in function / method body
max-statements=100
# Minimum lines number of a similarity.
min-similarity-lines=10