Skip to content

Commit

Permalink
Hubfix (#217)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
teharris1 committed Jan 19, 2020
1 parent 743f3db commit 7a8f774
Show file tree
Hide file tree
Showing 56 changed files with 3,757 additions and 2,631 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,4 @@ ENV/
/.mypy_cache/3.6
/.pytest_cache/v/cache
/.pypirc
/.vscode
35 changes: 29 additions & 6 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
[MASTER]
ignore=tests, samples
# Use a conservative default here; 2 should speed up most setups and not hurt
# any too bad. Override on command line as appropriate.
jobs=2
persistent=no
class-naming-style=any

[BASIC]
good-names=id,ex,devices,on,off,scenes,commands

[MESSAGES CONTROL]
# Reasons disabled:
# format - handled by black
# locally-disabled - it spams too much
# duplicate-code - unavoidable
# cyclic-import - doesn't test if both import on load
Expand All @@ -11,20 +23,24 @@
# too-few-* - same as too-many-*
# abstract-method - with intro of async there are always methods missing
# inconsistent-return-statements - doesn't handle raise
# not-an-iterable - https://github.com/PyCQA/pylint/issues/2311
# invalid-name - intending to fix this in future releases but not now
# unnecessary-pass - readability for functions which only contain pass
# import-outside-toplevel - TODO
# too-many-ancestors - it's too strict.
disable=
format,
abstract-class-little-used,
abstract-method,
cyclic-import,
duplicate-code,
fixme,
global-statement,
import-outside-toplevel,
inconsistent-return-statements,
locally-disabled,
not-an-iterable,
not-context-manager,
redefined-variable-type,
too-few-public-methods,
too-many-ancestors,
too-many-arguments,
too-many-branches,
too-many-instance-attributes,
Expand All @@ -33,16 +49,23 @@ disable=
too-many-public-methods,
too-many-return-statements,
too-many-statements,
too-many-boolean-expressions,
unnecessary-pass,
unused-argument,
invalid-name

enable=
use-symbolic-message-instead

[REPORTS]
reports=no
score=no

[TYPECHECK]
# For attrs
ignored-classes=_CountingAttr
generated-members=botocore.errorfactory

[FORMAT]
expected-line-ending-format=LF

[EXCEPTIONS]
overgeneral-exceptions=Exception,HomeAssistantError
overgeneral-exceptions=Exception
Loading

0 comments on commit 7a8f774

Please sign in to comment.