forked from hail-is/hail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pylintrc
36 lines (29 loc) · 1.7 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
[MASTER]
# I also tried extension-pkg-allow-list, but it had no effect. https://stackoverflow.com/a/35259944/6823256
generated-members=orjson
ignore-paths=^.*.sql$,^.*hail/python/cluster-tests/.*$,^.*hail/python/dev/.*$,^.*hail/python/hail/.*$,^.*hail/python/hail.egg-info/.*$,^.*hail/python/test/.*$
[MESSAGES CONTROL]
# C0111 Missing docstring
# W1203 logging fstring interpolation
# R0913 too many arguments
# W0622 redefining built in
# W0212 protected member access
# W0621 redefining name from outer scope
# R0914 too many local variables
# W0603 using the global statement
# R0902 too many instance attributes
# C1801 Do not use len(SEQUENCE) as condition value
# W0221 Parameters differ from overridden method
# Reasons for disabling:
# no-value-for-parameter -- See bug in pylint https://github.com/pylint-dev/pylint/issues/259 and this is covered by mypy
disable=C0111,W1203,W1202,C0111,R0913,W0622,W0212,W0621,R0914,W0603,R0902,R0801,C1801,W0221,line-too-long,too-few-public-methods,fixme,too-many-function-args,too-many-branches,too-many-lines,too-many-boolean-expressions,too-many-statements,too-many-nested-blocks,wrong-import-order,logging-not-lazy,unnecessary-lambda,unnecessary-lambda-assignment,too-many-public-methods,broad-except,too-many-return-statements,bare-except,invalid-name,unsubscriptable-object,consider-using-f-string,try-except-raise,no-value-for-parameter
[FORMAT]
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
# tab).
indent-string=' '
attr-rgx=[a-z_][a-z0-9_]{0,30}|id$
argument-rgx=[a-z_][a-z0-9_]{0,30}|id$
variable-rgx=[a-z_][a-z0-9_]{0,30}|id|f$
const-rgx=(([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$
# Maximum number of characters on a single line.
max-line-length=120