-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from 2Fake/development
Prepare Release
- Loading branch information
Showing
85 changed files
with
2,302 additions
and
1,742 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.145.1/containers/python-3/.devcontainer/base.Dockerfile | ||
|
||
# [Choice] Python version: 3, 3.9, 3.8, 3.7, 3.6 | ||
ARG VARIANT="3.8" | ||
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT} | ||
|
||
# [Optional] If your pip requirements rarely change, uncomment this section to add them to the image. | ||
RUN python -m pip install --upgrade pip && pip install flake8-cognitive-complexity isort | ||
|
||
# [Optional] Uncomment this section to install additional OS packages. | ||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
# && apt-get -y install --no-install-recommends <your-package-list-here> | ||
|
||
# [Optional] Uncomment this line to install global node packages. | ||
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1 |
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,55 @@ | ||
{ | ||
"name": "devolo Home Control API", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"context": "..", | ||
"args": { | ||
// Update 'VARIANT' to pick a Python version: 3, 3.6, 3.7, 3.8, 3.9 | ||
"VARIANT": "3.8" | ||
} | ||
}, | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
"python.pythonPath": "/usr/local/bin/python", | ||
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", | ||
"python.formatting.blackPath": "/usr/local/py-utils/bin/black", | ||
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", | ||
"python.formatting.provider": "yapf", | ||
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit", | ||
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8", | ||
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy", | ||
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle", | ||
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", | ||
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint", | ||
"python.linting.enabled": true, | ||
"python.linting.flake8Enabled": true, | ||
"python.linting.mypyEnabled": true, | ||
"python.linting.pylintEnabled": true, | ||
"python.linting.pylintArgs": [ | ||
"--disable=C,R", | ||
"--enable=useless-suppression", | ||
], | ||
"python.sortImports.path": "/usr/local/bin/isort", | ||
"python.sortImports.args": [ | ||
"--settings-path=/workspaces/devolo_home_control_api/setup.cfg", | ||
], | ||
"python.testing.nosetestsEnabled": false, | ||
"python.testing.pytestEnabled": true, | ||
"python.testing.unittestEnabled": false, | ||
"editor.formatOnSave": true, | ||
"files.trimTrailingWhitespace": true, | ||
"files.trimFinalNewlines": true, | ||
"files.insertFinalNewline": true, | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-python.vscode-pylance", | ||
"sourcery.sourcery", | ||
"visualstudioexptteam.vscodeintellicode", | ||
], | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "pip install -e .[test]", | ||
} |
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 |
---|---|---|
|
@@ -17,4 +17,4 @@ jobs: | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
LABEL: "# TODO:" | ||
COMMENT_MARKER: "#" | ||
id: "todo" | ||
id: "todo" |
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 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-yapf | ||
rev: 'v0.30.0' | ||
hooks: | ||
- id: yapf | ||
- repo: https://github.com/pycqa/isort | ||
rev: '5.7.0' | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: 'v3.4.0' | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace |
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 |
---|---|---|
@@ -1 +1,10 @@ | ||
__version__ = "0.16.0" | ||
try: | ||
from importlib.metadata import PackageNotFoundError, version | ||
except ImportError: | ||
from importlib_metadata import PackageNotFoundError, version # type: ignore[no-redef] | ||
|
||
try: | ||
__version__ = version("package-name") | ||
except PackageNotFoundError: | ||
# package is not installed - e.g. pulled and run locally | ||
__version__ = "0.0.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
MESSAGE_TYPES = { | ||
"devolo.BinarySensor": "_binary_sensor", | ||
"devolo.BinarySwitch": "_binary_switch", | ||
"devolo.Blinds": "_multi_level_switch", | ||
"devolo.DevicesPage": "_inspect_devices", | ||
"devolo.DewpointSensor": "_multi_level_sensor", | ||
"devolo.Dimmer": "_multi_level_switch", | ||
"devolo.Grouping": "_grouping", | ||
"devolo.HumidityBarValue": "_humidity_bar", | ||
"devolo.HumidityBarZone": "_humidity_bar", | ||
"devolo.mprm.gw.GatewayAccessibilityFI": "_gateway_accessible", | ||
"devolo.Meter": "_meter", | ||
"devolo.MildewSensor": "_binary_sensor", | ||
"devolo.MultiLevelSensor": "_multi_level_sensor", | ||
"devolo.MultiLevelSwitch": "_multi_level_switch", | ||
"devolo.RemoteControl": "_remote_control", | ||
"devolo.SirenMultiLevelSwitch": "_multi_level_switch", | ||
"devolo.ShutterMovementFI": "_binary_sensor", | ||
"devolo.ValveTemperatureSensor": "_multi_level_sensor", | ||
"devolo.VoltageMultiLevelSensor": "_multi_level_sensor", | ||
"devolo.WarningBinaryFI": "_binary_sensor", | ||
"hdm": "_device_state", | ||
"acs.hdm": "_automatic_calibration", | ||
"bas.hdm": "_binary_async", | ||
"bss.hdm": "_binary_sync", | ||
"cps.hdm": "_parameter", | ||
"gds.hdm": "_general_device", | ||
"lis.hdm": "_led", | ||
"mas.hdm": "_multilevel_async", | ||
"mss.hdm": "_multilevel_sync", | ||
"ps.hdm": "_protection", | ||
"stmss.hdm": "_multilevel_sync", | ||
"sts.hdm": "_switch_type", | ||
"trs.hdm": "_temperature_report", | ||
"vfs.hdm": "_led" | ||
} |
Oops, something went wrong.