Skip to content

Commit

Permalink
Create .devcontainer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
wimb0 authored Feb 11, 2025
1 parent ed7363a commit ae07b3d
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .devcontainer.json
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": {}
}
}

0 comments on commit ae07b3d

Please sign in to comment.