Skip to content

Commit 7a8f774

Browse files
authored
Hubfix (#217)
* Ignore vscode files * Restart reader on error * Bump version to 0.16.6 * Await sleep correctly * Black format * remove duration param in pytest * Flake settings * Flake8 settings * Black * Add docstrings * Flake8 settings
1 parent 743f3db commit 7a8f774

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+3757
-2631
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,4 @@ ENV/
9797
/.mypy_cache/3.6
9898
/.pytest_cache/v/cache
9999
/.pypirc
100+
/.vscode

.pylintrc

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1+
[MASTER]
2+
ignore=tests, samples
3+
# Use a conservative default here; 2 should speed up most setups and not hurt
4+
# any too bad. Override on command line as appropriate.
5+
jobs=2
6+
persistent=no
7+
class-naming-style=any
8+
9+
[BASIC]
10+
good-names=id,ex,devices,on,off,scenes,commands
11+
112
[MESSAGES CONTROL]
213
# Reasons disabled:
14+
# format - handled by black
315
# locally-disabled - it spams too much
416
# duplicate-code - unavoidable
517
# cyclic-import - doesn't test if both import on load
@@ -11,20 +23,24 @@
1123
# too-few-* - same as too-many-*
1224
# abstract-method - with intro of async there are always methods missing
1325
# inconsistent-return-statements - doesn't handle raise
14-
# not-an-iterable - https://github.com/PyCQA/pylint/issues/2311
15-
# invalid-name - intending to fix this in future releases but not now
26+
# unnecessary-pass - readability for functions which only contain pass
27+
# import-outside-toplevel - TODO
28+
# too-many-ancestors - it's too strict.
1629
disable=
30+
format,
1731
abstract-class-little-used,
1832
abstract-method,
1933
cyclic-import,
2034
duplicate-code,
35+
fixme,
2136
global-statement,
37+
import-outside-toplevel,
2238
inconsistent-return-statements,
2339
locally-disabled,
24-
not-an-iterable,
2540
not-context-manager,
2641
redefined-variable-type,
2742
too-few-public-methods,
43+
too-many-ancestors,
2844
too-many-arguments,
2945
too-many-branches,
3046
too-many-instance-attributes,
@@ -33,16 +49,23 @@ disable=
3349
too-many-public-methods,
3450
too-many-return-statements,
3551
too-many-statements,
52+
too-many-boolean-expressions,
53+
unnecessary-pass,
3654
unused-argument,
3755
invalid-name
3856

57+
enable=
58+
use-symbolic-message-instead
59+
3960
[REPORTS]
40-
reports=no
61+
score=no
4162

4263
[TYPECHECK]
4364
# For attrs
4465
ignored-classes=_CountingAttr
45-
generated-members=botocore.errorfactory
66+
67+
[FORMAT]
68+
expected-line-ending-format=LF
4669

4770
[EXCEPTIONS]
48-
overgeneral-exceptions=Exception,HomeAssistantError
71+
overgeneral-exceptions=Exception

0 commit comments

Comments
 (0)