Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(pre-commit.ci): pre-commit autoupdate #132

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ ci:

repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.2.2
rev: v3.27.0
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: debug-statements
- id: check-builtin-literals
Expand All @@ -33,7 +33,7 @@ repos:
# hooks:
# - id: prettier
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.16.0
hooks:
- id: pyupgrade
args: [--py37-plus]
Expand All @@ -42,23 +42,23 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
rev: 7.1.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.10.1
hooks:
- id: mypy
- repo: https://github.com/PyCQA/bandit
rev: 1.7.6
rev: 1.7.9
hooks:
- id: bandit
args: [-x, tests]
1 change: 1 addition & 0 deletions src/bthome_ble/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Parser for BLE advertisements in BTHome format."""

from __future__ import annotations

from sensor_state_data import (
Expand Down
1 change: 1 addition & 0 deletions src/bthome_ble/bthome_v1_encryption.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example showing encoding and decoding of BTHome v1 advertisement"""

from __future__ import annotations

import binascii
Expand Down
1 change: 1 addition & 0 deletions src/bthome_ble/bthome_v2_encryption.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example showing encoding and decoding of BTHome v2 advertisement"""

from __future__ import annotations

import binascii
Expand Down
1 change: 1 addition & 0 deletions src/bthome_ble/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Constants for BTHome measurements."""

import dataclasses
from typing import Union

Expand Down
1 change: 1 addition & 0 deletions src/bthome_ble/event.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Event constants for BTHome measurements."""

from __future__ import annotations

from sensor_state_data.enum import StrEnum
Expand Down
1 change: 1 addition & 0 deletions src/bthome_ble/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

MIT License applies.
"""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions tests/test_parser_v1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the parser of BLE advertisements in BTHome V1 format."""

import logging
from datetime import datetime, timezone
from unittest.mock import patch
Expand Down
1 change: 1 addition & 0 deletions tests/test_parser_v2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the parser of BLE advertisements in BTHome V2 format."""

import logging
from datetime import datetime, timezone
from unittest.mock import patch
Expand Down
1 change: 1 addition & 0 deletions tests/test_v1_encryption.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the parser of BLE advertisements in BTHome V1 format."""

import binascii

from bthome_ble.bthome_v1_encryption import decrypt_aes_ccm, encrypt_payload
Expand Down
1 change: 1 addition & 0 deletions tests/test_v2_encryption.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the parser of BLE advertisements in BTHome V2 format."""

import binascii

from bthome_ble.bthome_v2_encryption import decrypt_aes_ccm, encrypt_payload
Expand Down
Loading