Skip to content

Commit

Permalink
0.10.0 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Adminiuga authored Sep 19, 2020
2 parents 4082eae + 05c0e7e commit 03c0093
Show file tree
Hide file tree
Showing 12 changed files with 571 additions and 361 deletions.
11 changes: 7 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
repos:
- repo: https://github.com/psf/black
rev: 19.3b0
rev: 20.8b1
hooks:
- id: black
args:
- --safe
- --quiet
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.8
rev: 3.8.3
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
additional_dependencies:
- flake8-docstrings==1.5.0
- pydocstyle==5.1.1
- repo: https://github.com/PyCQA/isort
rev: 5.5.2
hooks:
- id: isort
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ language: python
matrix:
fast_finish: true
include:
- python: "3.6"
- python: "3.7"
env: TOXENV=lint
- python: "3.6"
- python: "3.7"
env: TOXENV=black
- python: "3.6"
env: TOXENV=py36
- python: "3.7"
env: TOXENV=py37
- python: "3.8"
Expand Down
17 changes: 4 additions & 13 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,15 @@ max-line-length = 88
ignore =
W503,
E203,
D101,
D102,
D103,
D202

[isort]
# https://github.com/timothycrosley/isort
# https://github.com/timothycrosley/isort/wiki/isort-Settings
# splits long import on multiple lines indented by 4 spaces
multi_line_output = 3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88
indent = " "
# by default isort don't check module indexes
not_skip = __init__.py
profile = black
# will group `import x` and `from x import` of the same module.
force_sort_within_sections = true
sections = FUTURE,STDLIB,INBETWEENS,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
default_section = THIRDPARTY
known_first_party = zigpy_deconz,tests
forced_separate = tests
combine_as_imports = true
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Setup module for zigpy-deconz"""
"""Setup module for zigpy-deconz."""

import os

Expand All @@ -21,6 +21,6 @@
author_email="schmidt.d@aon.at",
license="GPL-3.0",
packages=find_packages(exclude=["*.tests"]),
install_requires=["pyserial-asyncio", "zigpy>=0.20.a1"],
install_requires=["pyserial-asyncio", "zigpy>=0.24.0"],
tests_require=["pytest", "pytest-asyncio", "asynctest"],
)
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Tests modules."""
9 changes: 9 additions & 0 deletions tests/async_mock.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"""Mock utilities that are async aware."""
import sys

if sys.version_info[:2] < (3, 8):
from asynctest.mock import * # noqa

AsyncMock = CoroutineMock # noqa: F405
else:
from unittest.mock import * # noqa
Loading

0 comments on commit 03c0093

Please sign in to comment.