mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 07:06:30 +00:00
Cleanup and speedup pylint (#1735)
This commit is contained in:
parent
522f68bf68
commit
c7b6b2ddb3
17
pylintrc
17
pylintrc
@ -1,27 +1,28 @@
|
|||||||
[MASTER]
|
[MASTER]
|
||||||
reports=no
|
reports=no
|
||||||
|
jobs=2
|
||||||
|
|
||||||
# Reasons disabled:
|
# Reasons disabled:
|
||||||
|
# format - handled by black
|
||||||
# locally-disabled - it spams too much
|
# locally-disabled - it spams too much
|
||||||
# duplicate-code - unavoidable
|
# duplicate-code - unavoidable
|
||||||
# cyclic-import - doesn't test if both import on load
|
# cyclic-import - doesn't test if both import on load
|
||||||
# abstract-class-little-used - prevents from setting right foundation
|
# abstract-class-little-used - prevents from setting right foundation
|
||||||
# abstract-class-not-used - is flaky, should not show up but does
|
# abstract-class-not-used - is flaky, should not show up but does
|
||||||
# unused-argument - generic callbacks and setup methods create a lot of warnings
|
# unused-argument - generic callbacks and setup methods create a lot of warnings
|
||||||
# global-statement - used for the on-demand requirement installation
|
|
||||||
# redefined-variable-type - this is Python, we're duck typing!
|
# redefined-variable-type - this is Python, we're duck typing!
|
||||||
# too-many-* - are not enforced for the sake of readability
|
# too-many-* - are not enforced for the sake of readability
|
||||||
# too-few-* - same as too-many-*
|
# too-few-* - same as too-many-*
|
||||||
# abstract-method - with intro of async there are always methods missing
|
# abstract-method - with intro of async there are always methods missing
|
||||||
|
|
||||||
disable=
|
disable=
|
||||||
|
format,
|
||||||
abstract-class-little-used,
|
abstract-class-little-used,
|
||||||
abstract-class-not-used,
|
|
||||||
abstract-method,
|
abstract-method,
|
||||||
cyclic-import,
|
cyclic-import,
|
||||||
duplicate-code,
|
duplicate-code,
|
||||||
global-statement,
|
|
||||||
locally-disabled,
|
locally-disabled,
|
||||||
|
no-else-return,
|
||||||
|
no-self-use,
|
||||||
not-context-manager,
|
not-context-manager,
|
||||||
redefined-variable-type,
|
redefined-variable-type,
|
||||||
too-few-public-methods,
|
too-few-public-methods,
|
||||||
@ -34,14 +35,6 @@ disable=
|
|||||||
too-many-return-statements,
|
too-many-return-statements,
|
||||||
too-many-statements,
|
too-many-statements,
|
||||||
unused-argument,
|
unused-argument,
|
||||||
line-too-long,
|
|
||||||
bad-continuation,
|
|
||||||
too-few-public-methods,
|
|
||||||
no-self-use,
|
|
||||||
not-async-context-manager,
|
|
||||||
too-many-locals,
|
|
||||||
too-many-branches,
|
|
||||||
no-else-return
|
|
||||||
|
|
||||||
[EXCEPTIONS]
|
[EXCEPTIONS]
|
||||||
overgeneral-exceptions=Exception
|
overgeneral-exceptions=Exception
|
||||||
|
Loading…
x
Reference in New Issue
Block a user