Skip to content

Commit 03c0093

Browse files
authored
0.10.0 Release
2 parents 4082eae + 05c0e7e commit 03c0093

File tree

12 files changed

+571
-361
lines changed

12 files changed

+571
-361
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 19.3b0
3+
rev: 20.8b1
44
hooks:
55
- id: black
66
args:
77
- --safe
88
- --quiet
99
- repo: https://gitlab.com/pycqa/flake8
10-
rev: 3.7.8
10+
rev: 3.8.3
1111
hooks:
1212
- id: flake8
13-
- repo: https://github.com/pre-commit/mirrors-isort
14-
rev: v4.3.21
13+
additional_dependencies:
14+
- flake8-docstrings==1.5.0
15+
- pydocstyle==5.1.1
16+
- repo: https://github.com/PyCQA/isort
17+
rev: 5.5.2
1518
hooks:
1619
- id: isort

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ language: python
22
matrix:
33
fast_finish: true
44
include:
5-
- python: "3.6"
5+
- python: "3.7"
66
env: TOXENV=lint
7-
- python: "3.6"
7+
- python: "3.7"
88
env: TOXENV=black
9-
- python: "3.6"
10-
env: TOXENV=py36
119
- python: "3.7"
1210
env: TOXENV=py37
1311
- python: "3.8"

setup.cfg

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,15 @@ max-line-length = 88
88
ignore =
99
W503,
1010
E203,
11+
D101,
12+
D102,
13+
D103,
1114
D202
1215

1316
[isort]
14-
# https://github.com/timothycrosley/isort
15-
# https://github.com/timothycrosley/isort/wiki/isort-Settings
16-
# splits long import on multiple lines indented by 4 spaces
17-
multi_line_output = 3
18-
include_trailing_comma=True
19-
force_grid_wrap=0
20-
use_parentheses=True
21-
line_length=88
22-
indent = " "
23-
# by default isort don't check module indexes
24-
not_skip = __init__.py
17+
profile = black
2518
# will group `import x` and `from x import` of the same module.
2619
force_sort_within_sections = true
27-
sections = FUTURE,STDLIB,INBETWEENS,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
28-
default_section = THIRDPARTY
2920
known_first_party = zigpy_deconz,tests
3021
forced_separate = tests
3122
combine_as_imports = true

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Setup module for zigpy-deconz"""
1+
"""Setup module for zigpy-deconz."""
22

33
import os
44

@@ -21,6 +21,6 @@
2121
author_email="[email protected]",
2222
license="GPL-3.0",
2323
packages=find_packages(exclude=["*.tests"]),
24-
install_requires=["pyserial-asyncio", "zigpy>=0.20.a1"],
24+
install_requires=["pyserial-asyncio", "zigpy>=0.24.0"],
2525
tests_require=["pytest", "pytest-asyncio", "asynctest"],
2626
)

tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Tests modules."""

tests/async_mock.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"""Mock utilities that are async aware."""
2+
import sys
3+
4+
if sys.version_info[:2] < (3, 8):
5+
from asynctest.mock import * # noqa
6+
7+
AsyncMock = CoroutineMock # noqa: F405
8+
else:
9+
from unittest.mock import * # noqa

0 commit comments

Comments
 (0)