Also run black/isort on tests (#82)

This commit is contained in:
Otto Winter 2021-07-29 16:09:16 +02:00 committed by GitHub
parent 5bf7b014b8
commit f90ffcf3b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -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' }}

View File

@ -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,

View File

@ -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

View File

@ -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