This repository has been archived by the owner on Aug 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from oischinger/multidevice
MultiDevice support
- Loading branch information
Showing
21 changed files
with
902 additions
and
470 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,90 @@ | ||
repos: | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.3.0 | ||
rev: v3.3.1 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py37-plus] | ||
args: [--py39-plus] | ||
- repo: https://github.com/PyCQA/autoflake | ||
rev: v2.0.0 | ||
hooks: | ||
- id: autoflake | ||
args: | ||
- --in-place | ||
- --remove-all-unused-imports | ||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
rev: 22.12.0 | ||
hooks: | ||
- id: black | ||
args: | ||
- --safe | ||
- --quiet | ||
files: ^((homeassistant|script|tests)/.+)?[^/]+\.py$ | ||
files: ^((homeassistant|pylint|script|tests)/.+)?[^/]+\.py$ | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v1.16.0 | ||
rev: v2.2.2 | ||
hooks: | ||
- id: codespell | ||
args: | ||
- --ignore-words-list=hass,alot,datas,dof,dur,farenheit,hist,iff,ines,ist,lightsensor,mut,nd,pres,referer,ser,serie,te,technik,ue,uint,visability,wan,wanna,withing | ||
- --ignore-words-list=additionals,alle,alot,ba,bre,bund,datas,dof,dur,ether,farenheit,falsy,fo,haa,hass,hist,iam,iff,iif,incomfort,ines,ist,lightsensor,mut,nam,nd,pres,pullrequests,referer,resset,rime,ser,serie,sur,te,technik,ue,uint,unsecure,visability,wan,wanna,withing,zar | ||
- --skip="./.*,*.csv,*.json" | ||
- --quiet-level=2 | ||
exclude_types: [csv, json] | ||
- repo: https://github.com/PYCQA/flake8.git | ||
rev: 5.0.4 | ||
exclude: ^tests/fixtures/|homeassistant/generated/ | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-docstrings==1.5.0 | ||
- pydocstyle==5.0.2 | ||
- pycodestyle==2.10.0 | ||
- pyflakes==3.0.1 | ||
- flake8-docstrings==1.6.0 | ||
- pydocstyle==6.1.1 | ||
- flake8-comprehensions==3.10.1 | ||
- flake8-noqa==1.3.0 | ||
- mccabe==0.7.0 | ||
files: ^(homeassistant|script|tests)/.+\.py$ | ||
- repo: https://github.com/PyCQA/bandit | ||
rev: 1.6.2 | ||
rev: 1.7.4 | ||
hooks: | ||
- id: bandit | ||
args: | ||
- --quiet | ||
- --format=custom | ||
- --configfile=tests/bandit.yaml | ||
files: ^(homeassistant|script|tests)/.+\.py$ | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v4.3.21 | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.11.4 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.4.0 | ||
rev: v3.2.0 | ||
hooks: | ||
- id: check-executables-have-shebangs | ||
stages: [manual] | ||
- id: check-json | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.790 | ||
exclude: (.vscode|.devcontainer) | ||
- id: no-commit-to-branch | ||
args: | ||
- --branch=dev | ||
- --branch=master | ||
- --branch=rc | ||
- repo: https://github.com/adrienverge/yamllint.git | ||
rev: v1.28.0 | ||
hooks: | ||
- id: mypy | ||
- id: yamllint | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.7.1 | ||
hooks: | ||
- id: prettier | ||
- repo: https://github.com/cdce8p/python-typing-update | ||
rev: v0.5.0 | ||
hooks: | ||
# Run `python-typing-update` hook manually from time to time | ||
# to update python typing syntax. | ||
# Will require manual work, before submitting changes! | ||
# pre-commit run --hook-stage manual python-typing-update --all-files | ||
- id: python-typing-update | ||
stages: [manual] | ||
args: | ||
- --pretty | ||
- --show-error-codes | ||
- --show-error-context | ||
- --py39-plus | ||
- --force | ||
- --keep-updates | ||
files: ^(homeassistant|tests|script)/.+\.py$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""ViCare integration.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.