diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c558d34..9e8e3a8 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: v4.6.1 + rev: v4.16.2 hooks: - id: commitizen stages: [commit-msg] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: debug-statements - id: check-builtin-literals @@ -34,33 +34,33 @@ repos: - id: prettier args: ["--tab-width", "2"] - repo: https://github.com/asottile/pyupgrade - rev: v3.19.1 + rev: v3.21.2 hooks: - id: pyupgrade args: [--py39-plus] - repo: https://github.com/PyCQA/isort - rev: 6.0.1 + rev: 9.0.0a3 hooks: - id: isort - - repo: https://github.com/psf/black - rev: 25.1.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.5.1 hooks: - id: black - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.2 hooks: - id: codespell - repo: https://github.com/PyCQA/flake8 - rev: 7.2.0 + rev: 7.3.0 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.15.0 + rev: v2.1.0 hooks: - id: mypy additional_dependencies: [] - repo: https://github.com/PyCQA/bandit - rev: 1.8.3 + rev: 1.9.4 hooks: - id: bandit args: [-x, tests] diff --git a/src/ibeacon_ble/__init__.py b/src/ibeacon_ble/__init__.py index edc5718..72520a9 100644 --- a/src/ibeacon_ble/__init__.py +++ b/src/ibeacon_ble/__init__.py @@ -110,7 +110,7 @@ def parse(self, service_info: BluetoothServiceInfo) -> iBeaconAdvertisement | No except ValueError: pass - (major, minor, power) = UNPACK_IBEACON(data[18:23]) + major, minor, power = UNPACK_IBEACON(data[18:23]) distance = calculate_distance_meters(power, service_info.rssi) vendor = None