mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-22 12:05:12 +01:00
Also run black/isort on tests (#82)
This commit is contained in:
parent
5bf7b014b8
commit
f90ffcf3b8
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -61,9 +61,9 @@ jobs:
|
||||
if: ${{ matrix.id == 'flake8' }}
|
||||
- run: pylint aioesphomeapi
|
||||
if: ${{ matrix.id == 'pylint' }}
|
||||
- run: black --check --diff --color aioesphomeapi
|
||||
- run: black --check --diff --color aioesphomeapi tests
|
||||
if: ${{ matrix.id == 'black' }}
|
||||
- run: isort --check --diff aioesphomeapi
|
||||
- run: isort --check --diff aioesphomeapi tests
|
||||
if: ${{ matrix.id == 'isort' }}
|
||||
- run: mypy aioesphomeapi
|
||||
if: ${{ matrix.id == 'mypy' }}
|
||||
|
@ -1,7 +1,7 @@
|
||||
from sys import version
|
||||
from mock import MagicMock, AsyncMock, call, patch
|
||||
|
||||
import pytest
|
||||
from mock import AsyncMock, MagicMock, call, patch
|
||||
|
||||
from aioesphomeapi.api_pb2 import (
|
||||
BinarySensorStateResponse,
|
||||
|
@ -1,8 +1,8 @@
|
||||
import asyncio
|
||||
import socket
|
||||
from mock import AsyncMock, MagicMock, Mock, patch
|
||||
|
||||
import pytest
|
||||
from mock import AsyncMock, MagicMock, Mock, patch
|
||||
|
||||
from aioesphomeapi.api_pb2 import ConnectResponse, HelloResponse
|
||||
from aioesphomeapi.connection import APIConnection, ConnectionParams
|
||||
|
@ -1,7 +1,7 @@
|
||||
import socket
|
||||
from mock import AsyncMock, MagicMock, patch
|
||||
|
||||
import pytest
|
||||
from mock import AsyncMock, MagicMock, patch
|
||||
|
||||
import aioesphomeapi.host_resolver as hr
|
||||
from aioesphomeapi.core import APIConnectionError
|
||||
|
Loading…
Reference in New Issue
Block a user