File tree Expand file tree Collapse file tree 5 files changed +24
-16
lines changed Expand file tree Collapse file tree 5 files changed +24
-16
lines changed Original file line number Diff line number Diff line change 11repos :
2- - repo : https://github.com/psf/black
2+ - repo : https://github.com/psf/black
33 rev : 19.3b0
44 hooks :
5- - id : black
5+ - id : black
66 args :
77 - --safe
88 - --quiet
9- - repo : https://gitlab.com/pycqa/flake8
9+ - repo : https://gitlab.com/pycqa/flake8
1010 rev : 3.7.8
1111 hooks :
12- - id : flake8
12+ - id : flake8
13+ - repo : https://github.com/pre-commit/mirrors-isort
14+ rev : v4.3.21
15+ hooks :
16+ - id : isort
Original file line number Diff line number Diff line change 44
55import asynctest
66import pytest
7-
87import zigpy .device
9- import zigpy .zdo .types as zdo_t
10- import zigpy_deconz .exception
11- import zigpy_deconz .zigbee .application as application
128from zigpy .types import EUI64
9+ import zigpy .zdo .types as zdo_t
10+
1311from zigpy_deconz import types as t
1412import zigpy_deconz .api as deconz_api
13+ import zigpy_deconz .exception
14+ import zigpy_deconz .zigbee .application as application
1515
1616
1717@pytest .fixture
Original file line number Diff line number Diff line change @@ -20,8 +20,12 @@ deps =
2020
2121[testenv:lint]
2222basepython = python3
23- deps = flake8
24- commands = flake8
23+ deps =
24+ flake8
25+ isort
26+ commands =
27+ flake8
28+ isort --check -rc {toxinidir}/zigpy_deconz {toxinidir}/tests {toxinidir}/setup.py
2529
2630[testenv:black]
2731deps =black
Original file line number Diff line number Diff line change 11import asyncio
2- import logging
3- import enum
42import binascii
3+ import enum
4+ import logging
55import typing
66
7- from . import uart
8- from . import types as t
97from zigpy_deconz .exception import CommandError
108
9+ from . import types as t , uart
10+
1111LOGGER = logging .getLogger (__name__ )
1212
1313COMMAND_TIMEOUT = 2
Original file line number Diff line number Diff line change 11import asyncio
2- import logging
3- import serial
42import binascii
3+ import logging
54
5+ import serial
66import serial_asyncio
77
88LOGGER = logging .getLogger (__name__ )
You can’t perform that action at this time.
0 commit comments