-
Notifications
You must be signed in to change notification settings - Fork 0
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 #2 from lnx85/devel
1.1.2
- Loading branch information
Showing
5 changed files
with
110 additions
and
2 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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
/.idea/ | ||
/.vscode/ | ||
/.env/ | ||
__pycache__/ | ||
.pytest_cache/ | ||
|
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,59 @@ | ||
{ | ||
// 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": [{ | ||
"name": "Home Assistant", | ||
"type": "python", | ||
"request": "launch", | ||
"module": "homeassistant", | ||
"justMyCode": false, | ||
"args": ["--debug"], | ||
"preLaunchTask": "Compile English translations" | ||
}, | ||
{ | ||
"name": "Home Assistant (skip pip)", | ||
"type": "python", | ||
"request": "launch", | ||
"module": "homeassistant", | ||
"justMyCode": false, | ||
"args": ["--debug", "--skip-pip"], | ||
"preLaunchTask": "Compile English translations" | ||
}, | ||
{ | ||
"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,15 @@ | ||
{ | ||
"editor.formatOnPaste": false, | ||
"editor.formatOnSave": true, | ||
"editor.formatOnType": true, | ||
"files.eol": "\n", | ||
"files.trimTrailingWhitespace": true, | ||
"files.insertFinalNewline": true, | ||
"python.linting.pylintEnabled": true, | ||
"python.linting.enabled": true, | ||
"python.formatting.provider": "black", | ||
"black-formatter.importStrategy": "fromEnvironment", | ||
"python.testing.pytestEnabled": true, | ||
"pylint.importStrategy": "fromEnvironment", | ||
"python.linting.lintOnSave": 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Install requirements", | ||
"type": "shell", | ||
"command": "pip3 install -r requirements-dev.txt", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Run Home Assistant on port 8123", | ||
"type": "shell", | ||
"command": "python -m homeassistant", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Upgrade Home Assistant to latest dev", | ||
"type": "shell", | ||
"command": "pip install -U home-assistant", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Unit tests", | ||
"type": "shell", | ||
"command": "pytest --cov=. --cov-config=.coveragerc --cov-report xml:coverage.xml", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Reformat code", | ||
"type": "shell", | ||
"command": "isort . && black .", | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |
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