diff --git a/.all-contributorsrc b/.all-contributorsrc index bcb20ca..e7e834c 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 5acf91b..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.31.0 + 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.1.0 + 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/tilt_ble/__init__.py b/src/tilt_ble/__init__.py index 4c46289..3b8a212 100644 --- a/src/tilt_ble/__init__.py +++ b/src/tilt_ble/__init__.py @@ -1,4 +1,5 @@ """Parser for Inkbird BLE advertisements.""" + from __future__ import annotations from sensor_state_data import ( diff --git a/src/tilt_ble/parser.py b/src/tilt_ble/parser.py index 8251717..8ab638a 100644 --- a/src/tilt_ble/parser.py +++ b/src/tilt_ble/parser.py @@ -22,7 +22,6 @@ class TiltBluetoothDeviceData(BluetoothData): - """Data update for Tilt Bluetooth devices""" def _start_update(self, service_info: BluetoothServiceInfo) -> None: