From 82ab903593f4654aa93ab8d8b6fd2cc7ae7db962 Mon Sep 17 00:00:00 2001 From: Rolf Berkenbosch <30292281+rolfberkenbosch@users.noreply.github.com> Date: Wed, 2 Jun 2021 21:47:39 +0200 Subject: [PATCH 1/6] Update manifest.json --- homeassistant/components/meteoalarm/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/meteoalarm/manifest.json b/homeassistant/components/meteoalarm/manifest.json index 0888a8fa06381c..1135b7a4d41cb8 100644 --- a/homeassistant/components/meteoalarm/manifest.json +++ b/homeassistant/components/meteoalarm/manifest.json @@ -2,7 +2,7 @@ "domain": "meteoalarm", "name": "MeteoAlarm", "documentation": "https://www.home-assistant.io/integrations/meteoalarm", - "requirements": ["meteoalertapi==0.1.6"], + "requirements": ["meteoalertapi==0.1.8"], "codeowners": ["@rolfberkenbosch"], "iot_class": "local_polling" } From eb95a0539dd8b22bbc33e99c59a01b36969be427 Mon Sep 17 00:00:00 2001 From: rolfberkenbosch Date: Wed, 2 Jun 2021 21:03:41 +0000 Subject: [PATCH 2/6] Add version bump to requirements --- .pre-commit-config.yaml | 111 ---------------------------------------- requirements_all.txt | 2 +- 2 files changed, 1 insertion(+), 112 deletions(-) delete mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 8106b2c074f201..00000000000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,111 +0,0 @@ -repos: - - repo: https://github.com/asottile/pyupgrade - rev: v2.16.0 - hooks: - - id: pyupgrade - args: [--py38-plus] - - repo: https://github.com/psf/black - rev: 21.5b2 - hooks: - - id: black - args: - - --safe - - --quiet - files: ^((homeassistant|script|tests)/.+)?[^/]+\.py$ - - repo: https://github.com/codespell-project/codespell - rev: v2.0.0 - hooks: - - id: codespell - args: - - --ignore-words-list=hass,alot,datas,dof,dur,ether,farenheit,hist,iff,ines,ist,lightsensor,mut,nd,pres,referer,ser,serie,te,technik,ue,uint,visability,wan,wanna,withing,iam,incomfort,ba - - --skip="./.*,*.csv,*.json" - - --quiet-level=2 - exclude_types: [csv, json] - exclude: ^tests/fixtures/ - - repo: https://gitlab.com/pycqa/flake8 - rev: 3.9.2 - hooks: - - id: flake8 - additional_dependencies: - - pycodestyle==2.7.0 - - pyflakes==2.3.1 - - flake8-docstrings==1.6.0 - - pydocstyle==6.0.0 - - flake8-comprehensions==3.5.0 - - flake8-noqa==1.1.0 - - mccabe==0.6.1 - files: ^(homeassistant|script|tests)/.+\.py$ - - repo: https://github.com/PyCQA/bandit - rev: 1.7.0 - hooks: - - id: bandit - args: - - --quiet - - --format=custom - - --configfile=tests/bandit.yaml - files: ^(homeassistant|script|tests)/.+\.py$ - - repo: https://github.com/PyCQA/isort - rev: 5.8.0 - hooks: - - id: isort - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 - hooks: - - id: check-executables-have-shebangs - stages: [manual] - - id: check-json - exclude: (.vscode|.devcontainer) - - id: no-commit-to-branch - args: - - --branch=dev - - --branch=master - - --branch=rc - - repo: https://github.com/adrienverge/yamllint.git - rev: v1.26.1 - hooks: - - id: yamllint - - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.2.1 - hooks: - - id: prettier - stages: [manual] - - repo: https://github.com/cdce8p/python-typing-update - rev: v0.3.3 - hooks: - # Run `python-typing-update` hook manually from time to time - # to update python typing syntax. - # Will require manual work, before submitting changes! - - id: python-typing-update - stages: [manual] - args: - - --py38-plus - - --force - - --keep-updates - files: ^(homeassistant|tests|script)/.+\.py$ - - repo: local - hooks: - # Run mypy through our wrapper script in order to get the possible - # pyenv and/or virtualenv activated; it may not have been e.g. if - # committing from a GUI tool that was not launched from an activated - # shell. - - id: mypy - name: mypy - entry: script/run-in-env.sh mypy - language: script - types: [python] - require_serial: true - files: ^homeassistant/.+\.py$ - - id: gen_requirements_all - name: gen_requirements_all - entry: script/run-in-env.sh python3 -m script.gen_requirements_all - pass_filenames: false - language: script - types: [text] - files: ^(homeassistant/.+/manifest\.json|\.pre-commit-config\.yaml)$ - - id: hassfest - name: hassfest - entry: script/run-in-env.sh python3 -m script.hassfest - pass_filenames: false - language: script - types: [text] - files: ^(homeassistant/.+/(manifest|strings)\.json|\.coveragerc|homeassistant/.+/services\.yaml)$ diff --git a/requirements_all.txt b/requirements_all.txt index 447d4e238cef75..602a0ab4134bca 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -939,7 +939,7 @@ mcstatus==5.1.1 messagebird==1.2.0 # homeassistant.components.meteoalarm -meteoalertapi==0.1.6 +meteoalertapi==0.1.8 # homeassistant.components.meteo_france meteofrance-api==1.0.2 From 8ca35bf64e5a940d5e4a77d246497ec87d79562d Mon Sep 17 00:00:00 2001 From: rolfberkenbosch Date: Wed, 2 Jun 2021 21:06:37 +0000 Subject: [PATCH 3/6] Add version bump to requirements --- .pre-commit-config.yaml | 111 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000000000..8106b2c074f201 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,111 @@ +repos: + - repo: https://github.com/asottile/pyupgrade + rev: v2.16.0 + hooks: + - id: pyupgrade + args: [--py38-plus] + - repo: https://github.com/psf/black + rev: 21.5b2 + hooks: + - id: black + args: + - --safe + - --quiet + files: ^((homeassistant|script|tests)/.+)?[^/]+\.py$ + - repo: https://github.com/codespell-project/codespell + rev: v2.0.0 + hooks: + - id: codespell + args: + - --ignore-words-list=hass,alot,datas,dof,dur,ether,farenheit,hist,iff,ines,ist,lightsensor,mut,nd,pres,referer,ser,serie,te,technik,ue,uint,visability,wan,wanna,withing,iam,incomfort,ba + - --skip="./.*,*.csv,*.json" + - --quiet-level=2 + exclude_types: [csv, json] + exclude: ^tests/fixtures/ + - repo: https://gitlab.com/pycqa/flake8 + rev: 3.9.2 + hooks: + - id: flake8 + additional_dependencies: + - pycodestyle==2.7.0 + - pyflakes==2.3.1 + - flake8-docstrings==1.6.0 + - pydocstyle==6.0.0 + - flake8-comprehensions==3.5.0 + - flake8-noqa==1.1.0 + - mccabe==0.6.1 + files: ^(homeassistant|script|tests)/.+\.py$ + - repo: https://github.com/PyCQA/bandit + rev: 1.7.0 + hooks: + - id: bandit + args: + - --quiet + - --format=custom + - --configfile=tests/bandit.yaml + files: ^(homeassistant|script|tests)/.+\.py$ + - repo: https://github.com/PyCQA/isort + rev: 5.8.0 + hooks: + - id: isort + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 + hooks: + - id: check-executables-have-shebangs + stages: [manual] + - id: check-json + exclude: (.vscode|.devcontainer) + - id: no-commit-to-branch + args: + - --branch=dev + - --branch=master + - --branch=rc + - repo: https://github.com/adrienverge/yamllint.git + rev: v1.26.1 + hooks: + - id: yamllint + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v2.2.1 + hooks: + - id: prettier + stages: [manual] + - repo: https://github.com/cdce8p/python-typing-update + rev: v0.3.3 + hooks: + # Run `python-typing-update` hook manually from time to time + # to update python typing syntax. + # Will require manual work, before submitting changes! + - id: python-typing-update + stages: [manual] + args: + - --py38-plus + - --force + - --keep-updates + files: ^(homeassistant|tests|script)/.+\.py$ + - repo: local + hooks: + # Run mypy through our wrapper script in order to get the possible + # pyenv and/or virtualenv activated; it may not have been e.g. if + # committing from a GUI tool that was not launched from an activated + # shell. + - id: mypy + name: mypy + entry: script/run-in-env.sh mypy + language: script + types: [python] + require_serial: true + files: ^homeassistant/.+\.py$ + - id: gen_requirements_all + name: gen_requirements_all + entry: script/run-in-env.sh python3 -m script.gen_requirements_all + pass_filenames: false + language: script + types: [text] + files: ^(homeassistant/.+/manifest\.json|\.pre-commit-config\.yaml)$ + - id: hassfest + name: hassfest + entry: script/run-in-env.sh python3 -m script.hassfest + pass_filenames: false + language: script + types: [text] + files: ^(homeassistant/.+/(manifest|strings)\.json|\.coveragerc|homeassistant/.+/services\.yaml)$ From c8575f49d49f1a0bd8ef38b5ea1ad665b432aaa2 Mon Sep 17 00:00:00 2001 From: Rolf Berkenbosch <30292281+rolfberkenbosch@users.noreply.github.com> Date: Thu, 3 Jun 2021 19:55:08 +0200 Subject: [PATCH 4/6] Update manifest.json --- homeassistant/components/meteoalarm/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/meteoalarm/manifest.json b/homeassistant/components/meteoalarm/manifest.json index 1135b7a4d41cb8..792743dbc4d59f 100644 --- a/homeassistant/components/meteoalarm/manifest.json +++ b/homeassistant/components/meteoalarm/manifest.json @@ -4,5 +4,5 @@ "documentation": "https://www.home-assistant.io/integrations/meteoalarm", "requirements": ["meteoalertapi==0.1.8"], "codeowners": ["@rolfberkenbosch"], - "iot_class": "local_polling" + "iot_class": "cloud_polling" } From ba361f0185beaec6f81305755914db1e3152a563 Mon Sep 17 00:00:00 2001 From: Rolf Berkenbosch <30292281+rolfberkenbosch@users.noreply.github.com> Date: Mon, 7 Jun 2021 15:56:03 +0200 Subject: [PATCH 5/6] Update manifest.json --- homeassistant/components/meteoalarm/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/meteoalarm/manifest.json b/homeassistant/components/meteoalarm/manifest.json index 792743dbc4d59f..ffdd7d8f49d2ab 100644 --- a/homeassistant/components/meteoalarm/manifest.json +++ b/homeassistant/components/meteoalarm/manifest.json @@ -2,7 +2,7 @@ "domain": "meteoalarm", "name": "MeteoAlarm", "documentation": "https://www.home-assistant.io/integrations/meteoalarm", - "requirements": ["meteoalertapi==0.1.8"], + "requirements": ["meteoalertapi==0.2.0"], "codeowners": ["@rolfberkenbosch"], "iot_class": "cloud_polling" } From 19203be075d89af3ac2fdf3835b6d0fdbccd05e2 Mon Sep 17 00:00:00 2001 From: Rolf Berkenbosch <30292281+rolfberkenbosch@users.noreply.github.com> Date: Mon, 7 Jun 2021 15:56:48 +0200 Subject: [PATCH 6/6] Update requirements_all.txt --- requirements_all.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_all.txt b/requirements_all.txt index de25b69bcdc9c8..258a23f9dfd555 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -939,7 +939,7 @@ mcstatus==5.1.1 messagebird==1.2.0 # homeassistant.components.meteoalarm -meteoalertapi==0.1.8 +meteoalertapi==0.2.0 # homeassistant.components.meteo_france meteofrance-api==1.0.2