Updated CloudFlare
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"recommendations": ["wholroyd.jinja"]
|
||||
}
|
||||
+152
@@ -0,0 +1,152 @@
|
||||
{
|
||||
// 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": "Run Addon (Dev Backends)",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"python": "${command:python.interpreterPath}",
|
||||
"module": "hassio-google-drive-backup.backup",
|
||||
"args": ["--config", "hassio-google-drive-backup/dev/data/dev_options.json"],
|
||||
"env": {
|
||||
"PYTHONPATH": "${workspaceFolder}/hassio-google-drive-backup"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Run Addon (Dev Drive)",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"python": "${command:python.interpreterPath}",
|
||||
"module": "hassio-google-drive-backup.backup",
|
||||
"args": ["--config", "hassio-google-drive-backup/dev/data/drive_dev_options.json"],
|
||||
"env": {
|
||||
"PYTHONPATH": "${workspaceFolder}/hassio-google-drive-backup"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Run Addon (Real Google Drive)",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"python": "${command:python.interpreterPath}",
|
||||
"module": "hassio-google-drive-backup.backup",
|
||||
"args": ["--config", "hassio-google-drive-backup/dev/data/drive_options.json"],
|
||||
"env": {
|
||||
"PYTHONPATH": "${workspaceFolder}/hassio-google-drive-backup"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Run Mock Backend Server",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"python": "${command:python.interpreterPath}",
|
||||
"module": "hassio-google-drive-backup.dev.simulationserver",
|
||||
"env": {
|
||||
"PYTHONPATH": "${workspaceFolder}/hassio-google-drive-backup"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Run Error Analyzer",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"python": "${command:python.interpreterPath}",
|
||||
"module": "hassio-google-drive-backup.backup.util.error_analyzer",
|
||||
"env": {
|
||||
"PYTHONPATH": "${workspaceFolder}/hassio-google-drive-backup"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Python: Current File (External Terminal)",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"console": "externalTerminal",
|
||||
"env": {
|
||||
"PYTHONPATH": "${workspaceFolder}/hassio-google-drive-backup"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Python Attach (Remote Debug docker addon)",
|
||||
"type": "python",
|
||||
"request": "attach",
|
||||
"pathMappings": [
|
||||
{
|
||||
"localRoot": "${workspaceFolder}/hassio-google-drive-backup", // You may also manually specify the directory containing your source code.
|
||||
"remoteRoot": "/app" // Linux example; adjust as necessary for your OS and situation.
|
||||
}
|
||||
],
|
||||
"port": 1627, // Set to the remote port.
|
||||
"host": "hassio", // Set to your remote host's public IP address.
|
||||
"env": {
|
||||
"PYTHONPATH": "${workspaceFolder}/hassio-google-drive-backup"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Run Auth Server",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"python": "${command:python.interpreterPath}",
|
||||
"module": "hassio-google-drive-backup.server",
|
||||
"env": {
|
||||
"PYTHONPATH": "${workspaceFolder}/hassio-google-drive-backup",
|
||||
"PORT": "12345",
|
||||
"CLIENT_SECRET": "client_secret",
|
||||
"CLIENT_ID": "client_id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "(DEV) Build/Upload Addon Container",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"python": "${command:python.interpreterPath}",
|
||||
"module": "hassio-google-drive-backup.dev.deploy_dev_addon",
|
||||
"env": {
|
||||
"PYTHONPATH": "${workspaceFolder}/hassio-google-drive-backup",
|
||||
"PORT": "12345",
|
||||
"CLIENT_SECRET": "client_secret",
|
||||
"CLIENT_ID": "client_id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "(PROD) Build/Upload Server Container",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"python": "${command:python.interpreterPath}",
|
||||
"module": "hassio-google-drive-backup.dev.deploy_server",
|
||||
"env": {
|
||||
"PYTHONPATH": "${workspaceFolder}/hassio-google-drive-backup",
|
||||
"PORT": "12345",
|
||||
"CLIENT_SECRET": "client_secret",
|
||||
"CLIENT_ID": "client_id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "(DEV) Build/Upload Server Container",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"python": "${command:python.interpreterPath}",
|
||||
"module": "hassio-google-drive-backup.dev.deploy_dev_server",
|
||||
"env": {
|
||||
"PYTHONPATH": "${workspaceFolder}/hassio-google-drive-backup",
|
||||
"PORT": "12345",
|
||||
"CLIENT_SECRET": "client_secret",
|
||||
"CLIENT_ID": "client_id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "(PROD) Build/Upload Addon Containers",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"python": "${command:python.interpreterPath}",
|
||||
"module": "hassio-google-drive-backup.dev.deploy_addon",
|
||||
"env": {
|
||||
"PYTHONPATH": "${workspaceFolder}/hassio-google-drive-backup",
|
||||
"PORT": "12345",
|
||||
"CLIENT_SECRET": "client_secret",
|
||||
"CLIENT_ID": "client_id"
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"python.testing.unittestEnabled": false,
|
||||
"python.testing.nosetestsEnabled": false,
|
||||
"python.testing.pytestEnabled": true,
|
||||
"python.linting.enabled": true,
|
||||
"python.linting.flake8Enabled": true,
|
||||
"python.linting.pylintEnabled": false,
|
||||
"python.linting.mypyEnabled": false,
|
||||
"python.linting.mypyArgs": ["--python-version", "3.8"],
|
||||
"python.linting.flake8Args": ["--ignore=E501,E731", "--verbose"],
|
||||
"python.autoComplete.addBrackets": true,
|
||||
"files.associations": {
|
||||
"*.jinja2": "html"
|
||||
},
|
||||
"[html]": {
|
||||
"editor.defaultFormatter": "vscode.html-language-features",
|
||||
"editor.tabSize": 2,
|
||||
},
|
||||
"python.analysis.completeFunctionParens": true,
|
||||
"python.analysis.typeCheckingMode": "basic"
|
||||
}
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558 for help with task definitions
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "PUBLISH: New version to Docker Hub (requires working docker)",
|
||||
"type": "shell",
|
||||
"command": "./deploy.sh",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Install addon libraries",
|
||||
"type": "process",
|
||||
"command": "${config:python.pythonPath}",
|
||||
"args": ["-m", "pip", "install", "-e", "hassio-google-drive-backup/"],
|
||||
"problemMatcher": [],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Install development dependencies",
|
||||
"type": "process",
|
||||
"command": "${config:python.pythonPath}",
|
||||
"args": ["-m", "pip", "install", "-r", ".devcontainer/requirements-dev.txt"],
|
||||
"problemMatcher": [],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "[Re]create and run local addon",
|
||||
"type": "process",
|
||||
"command": "${config:python.pythonPath}",
|
||||
"args": ["-m", "hassio-google-drive-backup.dev.deploy_local_addon"],
|
||||
"problemMatcher": [],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user