-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
55 additions
and
0 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,55 @@ | ||
{ | ||
"name": "SAJ R5 Inverter Modbus integration development", | ||
"image": "mcr.microsoft.com/devcontainers/python:3.11-bullseye", | ||
"postCreateCommand": "scripts/setup", | ||
"forwardPorts": [ | ||
8123 | ||
], | ||
"portsAttributes": { | ||
"8123": { | ||
"label": "Home Assistant", | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-python.python", | ||
"github.vscode-pull-request-github", | ||
"ryanluker.vscode-coverage-gutters", | ||
"ms-python.vscode-pylance", | ||
"charliermarsh.ruff", | ||
"ms-python.black-formatter", | ||
"esbenp.prettier-vscode" | ||
], | ||
"settings": { | ||
"files.eol": "\n", | ||
"files.trimTrailingWhitespace": true, | ||
"editor.tabSize": 4, | ||
"editor.formatOnPaste": false, | ||
"editor.formatOnSave": true, | ||
"editor.formatOnType": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
// Ruff config | ||
"notebook.formatOnSave.enabled": false, | ||
"notebook.codeActionsOnSave": { | ||
"notebook.source.fixAll": false, | ||
"notebook.source.organizeImports": false | ||
}, | ||
"[python]": { | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": true, | ||
"source.organizeImports": true | ||
}, | ||
"editor.defaultFormatter": "charliermarsh.ruff" | ||
} | ||
// End Ruff config | ||
} | ||
} | ||
}, | ||
"remoteUser": "vscode", | ||
"features": { | ||
"ghcr.io/devcontainers/features/rust:1": {} | ||
} | ||
} |