2019-05-13 01:16:55 -07:00
|
|
|
[MASTER]
|
|
|
|
ignore=tests
|
2019-10-23 23:18:41 +03: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 10:59:26 +02:00
|
|
|
persistent=no
|
2019-05-13 01:16:55 -07:00
|
|
|
|
|
|
|
[BASIC]
|
2019-10-07 18:17:39 +03:00
|
|
|
good-names=id,i,j,k,ex,Run,_,fp
|
2019-05-13 01:16:55 -07:00
|
|
|
|
2018-06-25 19:55:03 +03:00
|
|
|
[MESSAGES CONTROL]
|
2014-11-11 22:18:35 -08:00
|
|
|
# Reasons disabled:
|
2019-07-30 16:59:12 -07:00
|
|
|
# format - handled by black
|
2014-11-11 22:18:35 -08: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-19 23:40:51 -08:00
|
|
|
# unused-argument - generic callbacks and setup methods create a lot of warnings
|
2015-07-07 00:01:46 -07:00
|
|
|
# global-statement - used for the on-demand requirement installation
|
2015-11-29 13:49:05 -08: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-03 18:32:14 -07: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 18:17:39 +03:00
|
|
|
# import-outside-toplevel - TODO
|
2019-11-19 13:42:09 -06:00
|
|
|
# too-many-ancestors - it's too strict.
|
2019-12-12 15:58:47 +01:00
|
|
|
# wrong-import-order - isort guards this
|
2014-11-22 16:56:36 -08:00
|
|
|
disable=
|
2019-07-30 16:59:12 -07:00
|
|
|
format,
|
2015-01-04 01:34:48 -08:00
|
|
|
abstract-class-little-used,
|
2017-05-11 09:14:52 +02:00
|
|
|
abstract-method,
|
|
|
|
cyclic-import,
|
|
|
|
duplicate-code,
|
2015-11-29 13:49:05 -08:00
|
|
|
global-statement,
|
2019-10-07 18:17:39 +03: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 13:42:09 -06: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 04:34:12 +02: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,
|
2019-12-12 15:58:47 +01:00
|
|
|
unused-argument,
|
|
|
|
wrong-import-order
|
2019-11-26 08:40:08 +02:00
|
|
|
enable=
|
|
|
|
use-symbolic-message-instead
|
2014-10-09 22:48:22 -07:00
|
|
|
|
2018-06-25 19:55:03 +03:00
|
|
|
[REPORTS]
|
2019-11-16 10:59:26 +02:00
|
|
|
score=no
|
2018-05-01 12:20:41 -04:00
|
|
|
|
2018-06-25 19:55:03 +03:00
|
|
|
[TYPECHECK]
|
2018-05-01 12:20:41 -04:00
|
|
|
# For attrs
|
|
|
|
ignored-classes=_CountingAttr
|
2018-06-25 19:55:03 +03:00
|
|
|
|
2018-09-19 16:51:57 +03:00
|
|
|
[FORMAT]
|
|
|
|
expected-line-ending-format=LF
|
|
|
|
|
2018-06-25 19:55:03 +03:00
|
|
|
[EXCEPTIONS]
|
2019-12-06 22:58:32 +02:00
|
|
|
overgeneral-exceptions=BaseException,Exception,HomeAssistantError
|