Skip to content

Commit

Permalink
Updated dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
briis committed Nov 27, 2024
1 parent 39a7c8c commit 0139ed1
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 14 deletions.
27 changes: 15 additions & 12 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ludeeus/integration_blueprint",
"image": "mcr.microsoft.com/vscode/devcontainers/python:3.12-bullseye",
"image": "mcr.microsoft.com/devcontainers/python:3.12",
"postCreateCommand": "scripts/setup",
"forwardPorts": [
8123
Expand All @@ -14,25 +14,28 @@
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"charliermarsh.ruff",
"github.vscode-pull-request-github",
"ryanluker.vscode-coverage-gutters",
"ms-python.vscode-pylance"
"ms-python.python",
"ms-python.vscode-pylance",
"ryanluker.vscode-coverage-gutters"
],
"settings": {
"files.eol": "\n",
"editor.tabSize": 4,
"python.pythonPath": "/usr/bin/python3",
"python.analysis.autoSearchPaths": false,
"editor.formatOnPaste": false,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true
"editor.formatOnType": false,
"files.trimTrailingWhitespace": true,
"python.analysis.typeCheckingMode": "basic",
"python.analysis.autoImportCompletions": true,
"python.defaultInterpreterPath": "/usr/local/bin/python",
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
}
}
}
},
"remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers/features/rust:1": {}
}
"features": {}
}
6 changes: 4 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
colorlog==6.9.0
homeassistant==2024.11.1
homeassistant==2024.11.3
pip>=24.1.1,<24.4
ruff==0.5.6
ruff==0.8.0
zlib_ng==0.5.1
isal==1.7.1
10 changes: 10 additions & 0 deletions scripts/setup
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,14 @@ set -e

cd "$(dirname "$0")/.."

python3 -m pip install --upgrade pip
python3 -m pip install --requirement requirements.txt

sudo apt update && sudo apt upgrade -y
sudo apt install ffmpeg -y
sudo apt install libpcap0.8 -y
sudo apt install libturbojpeg0 -y

wget https://github.com/AlexxIT/go2rtc/releases/download/v1.9.7/go2rtc_linux_arm64
sudo mv go2rtc_linux_arm64 /bin/go2rtc
sudo chmod +x /bin/go2rtc
3 changes: 3 additions & 0 deletions scripts/upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ set -e

cd "$(dirname "$0")/.."

sudo apt update && sudo apt upgrade -y

python3 -m pip install --upgrade pip
python3 -m pip install --upgrade --pre homeassistant

0 comments on commit 0139ed1

Please sign in to comment.