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
12 changes: 8 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
repos:
- repo: https://github.com/psf/black
- repo: https://github.com/psf/black
rev: 19.3b0
hooks:
- id: black
- id: black
args:
- --safe
- --quiet
- repo: https://gitlab.com/pycqa/flake8
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.8
hooks:
- id: flake8
- id: flake8
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
8 changes: 4 additions & 4 deletions tests/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

import asynctest
import pytest

import zigpy.device
import zigpy.zdo.types as zdo_t
import zigpy_deconz.exception
import zigpy_deconz.zigbee.application as application
from zigpy.types import EUI64
import zigpy.zdo.types as zdo_t

from zigpy_deconz import types as t
import zigpy_deconz.api as deconz_api
import zigpy_deconz.exception
import zigpy_deconz.zigbee.application as application


@pytest.fixture
Expand Down
8 changes: 6 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ deps =

[testenv:lint]
basepython = python3
deps = flake8
commands = flake8
deps =
flake8
isort
commands =
flake8
isort --check -rc {toxinidir}/zigpy_deconz {toxinidir}/tests {toxinidir}/setup.py

[testenv:black]
deps=black
Expand Down
8 changes: 4 additions & 4 deletions zigpy_deconz/api.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import asyncio
import logging
import enum
import binascii
import enum
import logging
import typing

from . import uart
from . import types as t
from zigpy_deconz.exception import CommandError

from . import types as t, uart

LOGGER = logging.getLogger(__name__)

COMMAND_TIMEOUT = 2
Expand Down
4 changes: 2 additions & 2 deletions zigpy_deconz/uart.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import asyncio
import logging
import serial
import binascii
import logging

import serial
import serial_asyncio

LOGGER = logging.getLogger(__name__)
Expand Down