From 6b9dfa98f81c20b80f5ac9ab4fb44b5928a52ea3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 12:11:07 -0700 Subject: [PATCH] chore(pre-commit.ci): pre-commit autoupdate (#23) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .all-contributorsrc | 4 +--- .pre-commit-config.yaml | 20 ++++++++++---------- src/thermopro_ble/__init__.py | 1 + src/thermopro_ble/parser.py | 1 + 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index 3ecc33b..565fd39 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/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5ecfceb..fbbc741 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.32.2 + rev: v3.27.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.3 + rev: v3.16.0 hooks: - id: pyupgrade args: [--py37-plus] - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + 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.2.1 + rev: v2.3.0 hooks: - id: codespell - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 7.1.0 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.931 + rev: v1.10.1 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] diff --git a/src/thermopro_ble/__init__.py b/src/thermopro_ble/__init__.py index f32252f..ddd345a 100644 --- a/src/thermopro_ble/__init__.py +++ b/src/thermopro_ble/__init__.py @@ -1,4 +1,5 @@ """Parser for ThermoPro BLE advertisements.""" + from __future__ import annotations from sensor_state_data import ( diff --git a/src/thermopro_ble/parser.py b/src/thermopro_ble/parser.py index ff4eeb7..5c60394 100644 --- a/src/thermopro_ble/parser.py +++ b/src/thermopro_ble/parser.py @@ -5,6 +5,7 @@ MIT License applies. """ + from __future__ import annotations import logging