This repository has been archived by the owner on Jan 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve build + python style + improvements + drop python 3.5 support
- Loading branch information
1 parent
c814b23
commit cf47fa5
Showing
64 changed files
with
3,689 additions
and
3,600 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,3 +102,6 @@ venv.bak/ | |
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
#idea | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[mypy] | ||
show_error_context = True | ||
show_column_numbers = True | ||
|
||
[mypy-vr900connector.*] | ||
no_implicit_reexport = False | ||
|
||
[mypy-vr900connector.model.mapper] | ||
disallow_untyped_defs = False | ||
disallow_incomplete_defs = False | ||
|
||
[mypy-tests.*] | ||
disallow_untyped_decorators = False | ||
no_strict_optional = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
attrs>=19.0.0,<20.0.0 | ||
responses>=0.10.0,<1.0.0 | ||
requests>=2.20.0,<3.0.0 | ||
jsonpickle>=1.0,<2.0 | ||
coveralls>=1.6.0,<2.0 | ||
jsonpickle>=1.0,<2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[MESSAGES CONTROL] | ||
disable= | ||
protected-access, | ||
too-few-public-methods, | ||
too-many-public-methods, | ||
missing-docstring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
"""Vr900connector tests.""" | ||
import logging | ||
|
||
logging.basicConfig(level=logging.ERROR, format="%(asctime)s:%(levelname)s:%(name)s: %(message)s") | ||
logging.basicConfig(level=logging.ERROR, | ||
format="%(asctime)s:%(levelname)s:%(name)s: %(message)s") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"body": { | ||
"errorMessages": [ | ||
{ | ||
"deviceName": "VC BE 246/5-3", | ||
"type": "STATUS", | ||
"title": "Mode chauffage : Arrêt temporaire après une opération de chauffage", | ||
"statusCode": "S.8", | ||
"description": "...", | ||
"hint": "...", | ||
"timestamp": 1545896904282 | ||
} | ||
] | ||
}, | ||
"meta": { | ||
"onlineStatus": { | ||
"status": "ONLINE" | ||
}, | ||
"firmwareUpdateStatus": { | ||
"status": "UPDATE_NOT_PENDING" | ||
}, | ||
"syncState": [ | ||
{ | ||
"state": "PENDING", | ||
"timestamp": 1546439817247, | ||
"link": { | ||
"rel": "self", | ||
"resourceLink": "/facilities/1234567890123456789012345678/hvacstate/v1/overview" | ||
} | ||
} | ||
] | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import unittest | ||
|
||
from vr900connector.model import SyncState | ||
|
||
|
||
class StateTest(unittest.TestCase): | ||
|
||
def test_is_sync(self) -> None: | ||
self.assertTrue(SyncState('SYNCED', 123, 'link').is_sync) | ||
|
||
def test_is_pending(self) -> None: | ||
self.assertTrue(SyncState('PENDING', 123, 'link').is_pending) | ||
|
||
def test_is_outdated(self) -> None: | ||
self.assertTrue(SyncState('OUTDATED', 123, 'link').is_outdated) | ||
|
||
def test_is_init(self) -> None: | ||
self.assertTrue(SyncState('INITIALIZING', 123, 'link').is_init) |
Oops, something went wrong.