mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Show diff in CI and cleanup pylintrc (#33704)
This commit is contained in:
parent
c8df5fb8ad
commit
0793b5ac62
@ -74,11 +74,11 @@ stages:
|
|||||||
displayName: 'Run yamllint'
|
displayName: 'Run yamllint'
|
||||||
- script: |
|
- script: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pre-commit run pyupgrade --all-files
|
pre-commit run pyupgrade --all-files --show-diff-on-failure
|
||||||
displayName: 'Run pyupgrade'
|
displayName: 'Run pyupgrade'
|
||||||
- script: |
|
- script: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pre-commit run prettier --all-files
|
pre-commit run prettier --all-files --show-diff-on-failure
|
||||||
displayName: 'Run prettier'
|
displayName: 'Run prettier'
|
||||||
- job: 'Validate'
|
- job: 'Validate'
|
||||||
pool:
|
pool:
|
||||||
|
2
pylintrc
2
pylintrc
@ -18,13 +18,11 @@ good-names=id,i,j,k,ex,Run,_,fp
|
|||||||
# 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
|
||||||
# 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
|
||||||
# inconsistent-return-statements - doesn't handle raise
|
# inconsistent-return-statements - doesn't handle raise
|
||||||
# import-outside-toplevel - TODO
|
|
||||||
# too-many-ancestors - it's too strict.
|
# too-many-ancestors - it's too strict.
|
||||||
# wrong-import-order - isort guards this
|
# wrong-import-order - isort guards this
|
||||||
disable=
|
disable=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user