From 13f8689905b33c02942c3a9500ab0571a9bdc682 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jul 2024 18:14:01 +0000 Subject: [PATCH 1/2] chore(pre-commit.ci): pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/commitizen-tools/commitizen: v2.29.0 → v3.28.0](https://github.com/commitizen-tools/commitizen/compare/v2.29.0...v3.28.0) - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.6.0) - [github.com/pre-commit/mirrors-prettier: v2.7.1 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v2.7.1...v4.0.0-alpha.8) - [github.com/asottile/pyupgrade: v2.37.2 → v3.17.0](https://github.com/asottile/pyupgrade/compare/v2.37.2...v3.17.0) - [github.com/PyCQA/isort: 5.10.1 → 5.13.2](https://github.com/PyCQA/isort/compare/5.10.1...5.13.2) - [github.com/psf/black: 22.6.0 → 24.4.2](https://github.com/psf/black/compare/22.6.0...24.4.2) - [github.com/codespell-project/codespell: v2.1.0 → v2.3.0](https://github.com/codespell-project/codespell/compare/v2.1.0...v2.3.0) - [github.com/PyCQA/flake8: 4.0.1 → 7.1.0](https://github.com/PyCQA/flake8/compare/4.0.1...7.1.0) - [github.com/pre-commit/mirrors-mypy: v0.931 → v1.11.0](https://github.com/pre-commit/mirrors-mypy/compare/v0.931...v1.11.0) - [github.com/PyCQA/bandit: 1.7.4 → 1.7.9](https://github.com/PyCQA/bandit/compare/1.7.4...1.7.9) --- .pre-commit-config.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 21ba2ad..0209acf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,12 +9,12 @@ ci: repos: - repo: https://github.com/commitizen-tools/commitizen - rev: v2.29.0 + rev: v3.28.0 hooks: - id: commitizen stages: [commit-msg] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.6.0 hooks: - id: debug-statements - id: check-builtin-literals @@ -29,38 +29,38 @@ repos: - id: trailing-whitespace - id: debug-statements - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.7.1 + rev: v4.0.0-alpha.8 hooks: - id: prettier args: ["--tab-width", "2"] - repo: https://github.com/asottile/pyupgrade - rev: v2.37.2 + rev: v3.17.0 hooks: - id: pyupgrade args: [--py37-plus] - repo: https://github.com/PyCQA/isort - rev: 5.10.1 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/psf/black - rev: 22.6.0 + rev: 24.4.2 hooks: - id: black - repo: https://github.com/codespell-project/codespell - rev: v2.1.0 + rev: v2.3.0 hooks: - id: codespell - repo: https://github.com/PyCQA/flake8 - rev: 4.0.1 + rev: 7.1.0 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.931 + rev: v1.11.0 hooks: - id: mypy additional_dependencies: [] - repo: https://github.com/PyCQA/bandit - rev: 1.7.4 + rev: 1.7.9 hooks: - id: bandit args: [-x, tests] From 5751417378b0b4ab022c15454221a0f53b7cef91 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jul 2024 18:16:54 +0000 Subject: [PATCH 2/2] chore(pre-commit.ci): auto fixes --- .all-contributorsrc | 4 +--- src/moat_ble/__init__.py | 1 + src/moat_ble/parser.py | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index 65fac1c..e597eb3 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -3,9 +3,7 @@ "projectOwner": "bluetooth-devices", "repoType": "github", "repoHost": "https://github.com", - "files": [ - "README.md" - ], + "files": ["README.md"], "imageSize": 80, "commit": true, "commitConvention": "angular", diff --git a/src/moat_ble/__init__.py b/src/moat_ble/__init__.py index b11531f..33da844 100644 --- a/src/moat_ble/__init__.py +++ b/src/moat_ble/__init__.py @@ -1,4 +1,5 @@ """Parser for Moat BLE advertisements.""" + from __future__ import annotations from sensor_state_data import ( diff --git a/src/moat_ble/parser.py b/src/moat_ble/parser.py index 49a68fc..2cd7d43 100644 --- a/src/moat_ble/parser.py +++ b/src/moat_ble/parser.py @@ -5,6 +5,7 @@ MIT License applies. """ + from __future__ import annotations import logging