2019-05-13 10:16:55 +02:00
|
|
|
[MASTER]
|
|
|
|
ignore=tests
|
2019-10-23 22:18:41 +02:00
|
|
|
# Use a conservative default here; 2 should speed up most setups and not hurt
|
|
|
|
# any too bad. Override on command line as appropriate.
|
|
|
|
jobs=2
|
2019-11-16 09:59:26 +01:00
|
|
|
persistent=no
|
2019-05-13 10:16:55 +02:00
|
|
|
|
|
|
|
[BASIC]
|
2019-10-07 17:17:39 +02:00
|
|
|
good-names=id,i,j,k,ex,Run,_,fp
|
2019-05-13 10:16:55 +02:00
|
|
|
|
2018-06-25 18:55:03 +02:00
|
|
|
[MESSAGES CONTROL]
|
2014-11-12 07:18:35 +01:00
|
|
|
# Reasons disabled:
|
2019-07-31 01:59:12 +02:00
|
|
|
# format - handled by black
|
2014-11-12 07:18:35 +01:00
|
|
|
# locally-disabled - it spams too much
|
|
|
|
# duplicate-code - unavoidable
|
|
|
|
# cyclic-import - doesn't test if both import on load
|
2016-10-30 22:18:53 +01:00
|
|
|
# abstract-class-little-used - prevents from setting right foundation
|
2015-01-20 08:40:51 +01:00
|
|
|
# unused-argument - generic callbacks and setup methods create a lot of warnings
|
2015-07-07 09:01:46 +02:00
|
|
|
# global-statement - used for the on-demand requirement installation
|
2015-11-29 22:49:05 +01:00
|
|
|
# redefined-variable-type - this is Python, we're duck typing!
|
2016-10-30 22:18:53 +01:00
|
|
|
# too-many-* - are not enforced for the sake of readability
|
|
|
|
# too-few-* - same as too-many-*
|
2016-11-04 02:32:14 +01:00
|
|
|
# abstract-method - with intro of async there are always methods missing
|
2018-02-11 18:20:28 +01:00
|
|
|
# inconsistent-return-statements - doesn't handle raise
|
2018-12-04 10:45:16 +01:00
|
|
|
# unnecessary-pass - readability for functions which only contain pass
|
2019-10-07 17:17:39 +02:00
|
|
|
# import-outside-toplevel - TODO
|
2019-11-19 20:42:09 +01:00
|
|
|
# too-many-ancestors - it's too strict.
|
2014-11-23 01:56:36 +01:00
|
|
|
disable=
|
2019-07-31 01:59:12 +02:00
|
|
|
format,
|
2015-01-04 10:34:48 +01:00
|
|
|
abstract-class-little-used,
|
2017-05-11 09:14:52 +02:00
|
|
|
abstract-method,
|
|
|
|
cyclic-import,
|
|
|
|
duplicate-code,
|
2015-11-29 22:49:05 +01:00
|
|
|
global-statement,
|
2019-10-07 17:17:39 +02:00
|
|
|
import-outside-toplevel,
|
2018-02-11 18:20:28 +01:00
|
|
|
inconsistent-return-statements,
|
2017-05-11 09:14:52 +02:00
|
|
|
locally-disabled,
|
|
|
|
not-context-manager,
|
2016-10-30 22:18:53 +01:00
|
|
|
redefined-variable-type,
|
2017-05-11 09:14:52 +02:00
|
|
|
too-few-public-methods,
|
2019-11-19 20:42:09 +01:00
|
|
|
too-many-ancestors,
|
2016-10-30 22:18:53 +01:00
|
|
|
too-many-arguments,
|
|
|
|
too-many-branches,
|
|
|
|
too-many-instance-attributes,
|
2017-05-11 09:14:52 +02:00
|
|
|
too-many-lines,
|
2016-10-30 22:18:53 +01:00
|
|
|
too-many-locals,
|
|
|
|
too-many-public-methods,
|
2016-11-03 03:34:12 +01:00
|
|
|
too-many-return-statements,
|
2016-10-30 22:18:53 +01:00
|
|
|
too-many-statements,
|
2019-11-05 22:39:15 +01:00
|
|
|
too-many-boolean-expressions,
|
2018-12-04 10:45:16 +01:00
|
|
|
unnecessary-pass,
|
2018-08-04 15:22:22 +02:00
|
|
|
unused-argument
|
2019-11-26 07:40:08 +01:00
|
|
|
enable=
|
|
|
|
use-symbolic-message-instead
|
2014-10-10 07:48:22 +02:00
|
|
|
|
2018-06-25 18:55:03 +02:00
|
|
|
[REPORTS]
|
2019-11-16 09:59:26 +01:00
|
|
|
score=no
|
2018-05-01 18:20:41 +02:00
|
|
|
|
2018-06-25 18:55:03 +02:00
|
|
|
[TYPECHECK]
|
2018-05-01 18:20:41 +02:00
|
|
|
# For attrs
|
|
|
|
ignored-classes=_CountingAttr
|
2018-06-25 18:55:03 +02:00
|
|
|
|
2018-09-19 15:51:57 +02:00
|
|
|
[FORMAT]
|
|
|
|
expected-line-ending-format=LF
|
|
|
|
|
2018-06-25 18:55:03 +02:00
|
|
|
[EXCEPTIONS]
|
2019-12-06 21:58:32 +01:00
|
|
|
overgeneral-exceptions=BaseException,Exception,HomeAssistantError
|