Fixes invalid JSON files and whitespace corrections in YAML files (#26396)

This commit is contained in:
Franck Nijhof 2019-09-04 01:02:42 +02:00 committed by Paulus Schoutsen
parent b6cd5ab27b
commit 9035efee10
11 changed files with 142 additions and 149 deletions

View File

@ -1,35 +1,32 @@
// See https://aka.ms/vscode-remote/devcontainer.json for format details. // See https://aka.ms/vscode-remote/devcontainer.json for format details.
{ {
"name": "Home Assistant Dev", "name": "Home Assistant Dev",
"context": "..", "context": "..",
"dockerFile": "../Dockerfile.dev", "dockerFile": "../Dockerfile.dev",
"postCreateCommand": "pip3 install -e .", "postCreateCommand": "pip3 install -e .",
"appPort": 8123, "appPort": 8123,
"runArgs": [ "runArgs": ["-e", "GIT_EDITOR=\"code --wait\""],
"-e", "extensions": [
"GIT_EDITOR=\"code --wait\"" "ms-python.python",
], "ms-azure-devops.azure-pipelines",
"extensions": [ "redhat.vscode-yaml"
"ms-python.python", ],
"ms-azure-devops.azure-pipelines", "settings": {
"redhat.vscode-yaml" "python.pythonPath": "/usr/local/bin/python",
], "python.linting.pylintEnabled": true,
"settings": { "python.linting.enabled": true,
"python.pythonPath": "/usr/local/bin/python", "python.formatting.provider": "black",
"python.linting.pylintEnabled": true, "editor.formatOnPaste": false,
"python.linting.enabled": true, "editor.formatOnSave": true,
"python.formatting.provider": "black", "editor.formatOnType": true,
"editor.formatOnPaste": false, "files.trimTrailingWhitespace": true,
"editor.formatOnSave": true, "terminal.integrated.shell.linux": "/bin/bash",
"editor.formatOnType": true, "yaml.customTags": [
"files.trimTrailingWhitespace": true, "!secret scalar",
"terminal.integrated.shell.linux": "/bin/bash", "!include_dir_named scalar",
"yaml.customTags": [ "!include_dir_list scalar",
"!secret scalar", "!include_dir_merge_list scalar",
"!include_dir_named scalar", "!include_dir_merge_named scalar"
"!include_dir_list scalar", ]
"!include_dir_merge_list scalar", }
"!include_dir_merge_named scalar"
]
}
} }

178
.vscode/tasks.json vendored
View File

@ -1,92 +1,90 @@
{ {
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"label": "Preview", "label": "Preview",
"type": "shell", "type": "shell",
"command": "hass -c ./config", "command": "hass -c ./config",
"group": { "group": {
"kind": "test", "kind": "test",
"isDefault": true, "isDefault": true
}, },
"presentation": { "presentation": {
"reveal": "always", "reveal": "always",
"panel": "new" "panel": "new"
}, },
"problemMatcher": [] "problemMatcher": []
}, },
{ {
"label": "Pytest", "label": "Pytest",
"type": "shell", "type": "shell",
"command": "pytest --timeout=10 tests", "command": "pytest --timeout=10 tests",
"group": { "group": {
"kind": "test", "kind": "test",
"isDefault": true, "isDefault": true
}, },
"presentation": { "presentation": {
"reveal": "always", "reveal": "always",
"panel": "new" "panel": "new"
}, },
"problemMatcher": [] "problemMatcher": []
}, },
{ {
"label": "Flake8", "label": "Flake8",
"type": "shell", "type": "shell",
"command": "flake8 homeassistant tests", "command": "flake8 homeassistant tests",
"group": { "group": {
"kind": "test", "kind": "test",
"isDefault": true, "isDefault": true
}, },
"presentation": { "presentation": {
"reveal": "always", "reveal": "always",
"panel": "new" "panel": "new"
}, },
"problemMatcher": [] "problemMatcher": []
}, },
{ {
"label": "Pylint", "label": "Pylint",
"type": "shell", "type": "shell",
"command": "pylint homeassistant", "command": "pylint homeassistant",
"dependsOn": [ "dependsOn": ["Install all Requirements"],
"Install all Requirements" "group": {
], "kind": "test",
"group": { "isDefault": true
"kind": "test", },
"isDefault": true, "presentation": {
}, "reveal": "always",
"presentation": { "panel": "new"
"reveal": "always", },
"panel": "new" "problemMatcher": []
}, },
"problemMatcher": [] {
}, "label": "Generate Requirements",
{ "type": "shell",
"label": "Generate Requirements", "command": "./script/gen_requirements_all.py",
"type": "shell", "group": {
"command": "./script/gen_requirements_all.py", "kind": "build",
"group": { "isDefault": true
"kind": "build", },
"isDefault": true "presentation": {
}, "reveal": "always",
"presentation": { "panel": "new"
"reveal": "always", },
"panel": "new" "problemMatcher": []
}, },
"problemMatcher": [] {
}, "label": "Install all Requirements",
{ "type": "shell",
"label": "Install all Requirements", "command": "pip3 install -r requirements_all.txt -c homeassistant/package_constraints.txt",
"type": "shell", "group": {
"command": "pip3 install -r requirements_all.txt -c homeassistant/package_constraints.txt", "kind": "build",
"group": { "isDefault": true
"kind": "build", },
"isDefault": true "presentation": {
}, "reveal": "always",
"presentation": { "panel": "new"
"reveal": "always", },
"panel": "new" "problemMatcher": []
}, }
"problemMatcher": [] ]
}
]
} }

View File

@ -198,4 +198,3 @@ pck:
pck: pck:
description: PCK command (without address header) description: PCK command (without address header)
example: 'PIN4' example: 'PIN4'

View File

@ -8,4 +8,3 @@
"dependencies": [], "dependencies": [],
"codeowners": ["@squishykid"] "codeowners": ["@squishykid"]
} }