Skip to content
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
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,10 @@ jobs:
- name: Register problem matchers
shell: bash
run: |
echo "::add-matcher::.github/workflows/matchers/flake8.json"
echo "::add-matcher::.github/workflows/matchers/pylint.json"
echo "::add-matcher::.github/workflows/matchers/mypy.json"
echo "::add-matcher::.github/workflows/matchers/pytest.json"

- run: flake8 aioesphomeapi
name: Lint with flake8
if: ${{ matrix.python-version == '3.14' && matrix.extension == 'skip_cython' && matrix.os == 'ubuntu-latest' }}
- run: ruff format --check aioesphomeapi tests
name: Check ruff formatting
if: ${{ matrix.python-version == '3.14' && matrix.extension == 'skip_cython' && matrix.os == 'ubuntu-latest' }}
Comment on lines 83 to 85
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/matchers/flake8.json

This file was deleted.

12 changes: 6 additions & 6 deletions aioesphomeapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# flake8: noqa
from .api_pb2 import ( # type: ignore[attr-defined] # noqa: F401
# ruff: noqa: F401, F403
from .api_pb2 import ( # type: ignore[attr-defined]
BluetoothLERawAdvertisement,
BluetoothLERawAdvertisementsResponse,
)
Expand All @@ -10,20 +10,20 @@
ESPHOME_GATT_ERRORS,
MESSAGE_TYPE_TO_PROTO,
APIConnectionError,
EncryptionPlaintextAPIError,
BadMACAddressAPIError,
BadNameAPIError,
BluetoothConnectionDroppedError,
EncryptionHelloAPIError,
EncryptionPlaintextAPIError,
HandshakeAPIError,
InvalidAuthAPIError,
InvalidEncryptionKeyAPIError,
ProtocolAPIError,
RequiresEncryptionAPIError,
ResolveAPIError,
EncryptionHelloAPIError,
SocketAPIError,
BadMACAddressAPIError,
wifi_mac_to_bluetooth_mac,
)
from .log_parser import LogParser, parse_log_message
from .model import *
from .reconnect_logic import ReconnectLogic
from .log_parser import parse_log_message, LogParser
1 change: 0 additions & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pylint==4.0.5
ruff==0.15.13
flake8==7.3.0
isort==8.0.1
mypy==2.1.0
types-protobuf==7.34.1.20260518
Expand Down
3 changes: 2 additions & 1 deletion script/lint
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ set -euxo pipefail

black --safe aioesphomeapi tests
pylint aioesphomeapi
flake8 aioesphomeapi
ruff check aioesphomeapi tests
ruff format --check aioesphomeapi tests
isort aioesphomeapi tests
Comment on lines +8 to 10
mypy aioesphomeapi
pytest tests
16 changes: 0 additions & 16 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,18 +1,2 @@
[flake8]
max-line-length = 120
# Following 4 for black compatibility
# E501: line too long
# W503: Line break occurred before a binary operator
# E203: Whitespace before ':'
# D202 No blank lines allowed after function docstring

ignore =
E501,
W503,
E203,
D202,

exclude = api_pb2.py, api_options_pb2.py

[bdist_wheel]
universal = 1
Loading