-
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.
Merge pull request #6 from xannor/dev
Import development work
- Loading branch information
Showing
23 changed files
with
569 additions
and
362 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
# Ensure Docker script files uses LF to support Docker for Windows. | ||
# Ensure "git config --global core.autocrlf input" before you clone | ||
* text eol=lf | ||
*.py whitespace=error | ||
|
||
*.ico binary | ||
*.jpg binary | ||
*.png binary | ||
*.zip binary | ||
*.mp3 binary | ||
*.pcm binary | ||
|
||
Dockerfile.dev linguist-language=Dockerfile |
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,6 +1,134 @@ | ||
# Python Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
.config/ | ||
/config | ||
config2/* | ||
|
||
tests/testing_config/deps | ||
tests/testing_config/home-assistant.log* | ||
|
||
# hass-release | ||
data/ | ||
.token | ||
|
||
# Translations | ||
homeassistant/components/*/translations | ||
|
||
# Hide sublime text stuff | ||
*.sublime-project | ||
*.sublime-workspace | ||
|
||
# Hide some OS X stuff | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# IntelliJ IDEA | ||
.idea | ||
*.iml | ||
|
||
# pytest | ||
.pytest_cache | ||
.cache | ||
|
||
# GITHUB Proposed Python stuff: | ||
*.py[cod] | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Packages | ||
*.egg | ||
*.egg-info | ||
dist | ||
build | ||
eggs | ||
.eggs | ||
parts | ||
bin | ||
var | ||
sdist | ||
develop-eggs | ||
.installed.cfg | ||
lib | ||
lib64 | ||
pip-wheel-metadata | ||
|
||
# Logs | ||
*.log | ||
pip-log.txt | ||
|
||
# Unit test / coverage reports | ||
.coverage | ||
coverage.xml | ||
nosetests.xml | ||
htmlcov/ | ||
test-reports/ | ||
test-results.xml | ||
test-output.xml | ||
pytest-*.txt | ||
|
||
# Translations | ||
*.mo | ||
|
||
# Mr Developer | ||
.mr.developer.cfg | ||
.project | ||
.pydevproject | ||
|
||
.python-version | ||
|
||
# emacs auto backups | ||
*~ | ||
*# | ||
*.orig | ||
|
||
# venv stuff | ||
pyvenv.cfg | ||
pip-selfcheck.json | ||
venv | ||
.venv | ||
Pipfile* | ||
share/* | ||
/Scripts/ | ||
|
||
# vimmy stuff | ||
*.swp | ||
*.swo | ||
tags | ||
ctags.tmp | ||
|
||
# vagrant stuff | ||
virtualization/vagrant/setup_done | ||
virtualization/vagrant/.vagrant | ||
virtualization/vagrant/config | ||
|
||
# Visual Studio Code | ||
.vscode/* | ||
!.vscode/cSpell.json | ||
!.vscode/extensions.json | ||
!.vscode/tasks.json | ||
.env | ||
|
||
# Windows Explorer | ||
desktop.ini | ||
/home-assistant.pyproj | ||
/home-assistant.sln | ||
/.vs/* | ||
|
||
# mypy | ||
/.mypy_cache/* | ||
/.dmypy.json | ||
|
||
# Secrets | ||
.lokalise_token | ||
|
||
# monkeytype | ||
monkeytype.sqlite3 | ||
|
||
# This is left behind by Azure Restore Cache | ||
tmp_cache | ||
|
||
# python-language-server / Rope | ||
.ropeproject |
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,9 +1,4 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-python.black-formatter", | ||
"ms-python.vscode-pylance", | ||
"redhat.vscode-yaml", | ||
"esbenp.prettier-vscode", | ||
"GitHub.vscode-pull-request-github" | ||
] | ||
} | ||
"recommendations": ["esbenp.prettier-vscode", "ms-python.python"] | ||
} | ||
|
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,38 +1,64 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
// Example of attaching to local debug server | ||
"name": "Python: Attach Local", | ||
"type": "python", | ||
"request": "attach", | ||
"port": 5678, | ||
"host": "localhost", | ||
"pathMappings": [ | ||
{ | ||
"localRoot": "${workspaceFolder}", | ||
"remoteRoot": "." | ||
}, | ||
{ | ||
"localRoot": "${workspaceFolder}/custom_components", | ||
"remoteRoot": "/config/custom_components" | ||
} | ||
] | ||
}, | ||
{ | ||
// Example of attaching to my production server | ||
"name": "Python: Attach Remote", | ||
"type": "python", | ||
"request": "attach", | ||
"port": 5678, | ||
"host": "homeassistant.local", | ||
"pathMappings": [ | ||
{ | ||
"localRoot": "${workspaceFolder}", | ||
"remoteRoot": "/usr/src/homeassistant" | ||
} | ||
] | ||
} | ||
{ | ||
"name": "Home Assistant", | ||
"type": "python", | ||
"request": "launch", | ||
"module": "homeassistant", | ||
"justMyCode": false, | ||
"args": ["--debug", "-c", "config"], | ||
"preLaunchTask": "Update strings" | ||
}, | ||
{ | ||
"name": "Home Assistant (skip pip)", | ||
"type": "python", | ||
"request": "launch", | ||
"module": "homeassistant", | ||
"justMyCode": false, | ||
"args": ["--debug", "-c", "config", "--skip-pip"], | ||
"preLaunchTask": "Update strings" | ||
}, | ||
{ | ||
"name": "Home Assistant: Changed tests", | ||
"type": "python", | ||
"request": "launch", | ||
"module": "pytest", | ||
"justMyCode": false, | ||
"args": ["--timeout=10", "--picked"], | ||
}, | ||
{ | ||
// Debug by attaching to local Home Assistant server using Remote Python Debugger. | ||
// See https://www.home-assistant.io/integrations/debugpy/ | ||
"name": "Home Assistant: Attach Local", | ||
"type": "python", | ||
"request": "attach", | ||
"port": 5678, | ||
"host": "localhost", | ||
"pathMappings": [ | ||
{ | ||
"localRoot": "${workspaceFolder}", | ||
"remoteRoot": "." | ||
} | ||
] | ||
}, | ||
{ | ||
// Debug by attaching to remote Home Assistant server using Remote Python Debugger. | ||
// See https://www.home-assistant.io/integrations/debugpy/ | ||
"name": "Home Assistant: Attach Remote", | ||
"type": "python", | ||
"request": "attach", | ||
"port": 5678, | ||
"host": "homeassistant.local", | ||
"pathMappings": [ | ||
{ | ||
"localRoot": "${workspaceFolder}", | ||
"remoteRoot": "/usr/src/homeassistant" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
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,10 @@ | ||
{ | ||
// Please keep this file in sync with settings in home-assistant/.devcontainer/devcontainer.json | ||
"python.formatting.provider": "black", | ||
// Added --no-cov to work around TypeError: message must be set | ||
// https://github.com/microsoft/vscode-python/issues/14067 | ||
"python.testing.pytestArgs": ["--no-cov"], | ||
// https://code.visualstudio.com/docs/python/testing#_pytest-configuration-settings | ||
"python.testing.pytestEnabled": false | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.