Skip to content

Commit

Permalink
devcontainer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wimb0 committed Feb 11, 2025
1 parent b326df8 commit 5bea549
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 27 deletions.
44 changes: 19 additions & 25 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SAJ R5 Inverter Modbus integration development",
"image": "mcr.microsoft.com/devcontainers/python:3.11-bullseye",
"name": "wimb0/home-assistant-saj-r5-modbus",
"image": "mcr.microsoft.com/devcontainers/python:3.12",
"postCreateCommand": "scripts/setup",
"forwardPorts": [
8123
Expand All @@ -14,42 +14,36 @@
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"charliermarsh.ruff",
"github.vscode-pull-request-github",
"ryanluker.vscode-coverage-gutters",
"ms-python.python",
"ms-python.vscode-pylance",
"charliermarsh.ruff",
"ms-python.black-formatter",
"esbenp.prettier-vscode"
"ryanluker.vscode-coverage-gutters"
],
"settings": {
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"editor.tabSize": 4,
"editor.formatOnPaste": false,
"editor.formatOnPaste": true,
"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
},
"editor.formatOnType": false,
"files.trimTrailingWhitespace": true,
"python.analysis.typeCheckingMode": "basic",
"python.analysis.autoImportCompletions": true,
"python.defaultInterpreterPath": "/usr/local/bin/python",
"[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": {}
"ghcr.io/devcontainers-extra/features/apt-packages:1": {
"packages": [
"ffmpeg",
"libturbojpeg0",
"libpcap-dev"
]
}
}
}
}
2 changes: 1 addition & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The contents of this file is based on https://github.com/home-assistant/core/blob/dev/pyproject.toml

target-version = "py311"
target-version = "py312"

[lint]
select = [
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
colorlog==6.9.0
homeassistant==2024.11.0
homeassistant>=2025.1.0
pip>=21.3.1
ruff==0.9.6

0 comments on commit 5bea549

Please sign in to comment.