Improvements to the development environment (#383)

* Update Home Assistant dev version in requirements_dev.txt

* Avoid "Error starting FFmpeg" error in VSCode dev container logs

* Add "editor.formatOnSaveMode": "modifications" to .vscode/settings.json
This commit is contained in:
Paulo Ferreira de Castro
2024-02-16 06:30:37 +00:00
committed by GitHub
parent dce8fa2ed6
commit 91e39f885f
5 changed files with 8 additions and 7 deletions

2
.devcontainer/Dockerfile Normal file
View File

@@ -0,0 +1,2 @@
FROM mcr.microsoft.com/devcontainers/python:1-3.11
RUN apt update && apt install -y ffmpeg

View File

@@ -1,8 +1,5 @@
default_config: default_config:
# ffmeg
ffmpeg:
logger: logger:
default: info default: info
logs: logs:

View File

@@ -1,7 +1,9 @@
// See https://aka.ms/vscode-remote/devcontainer.json for format details. // See https://aka.ms/vscode-remote/devcontainer.json for format details.
// "image": "ghcr.io/ludeeus/devcontainer/integration:latest", // "image": "ghcr.io/ludeeus/devcontainer/integration:latest",
{ {
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye", "build": {
"dockerfile": "Dockerfile"
},
"name": "Versatile Thermostat integration", "name": "Versatile Thermostat integration",
"appPort": [ "appPort": [
"8123:8123" "8123:8123"

View File

@@ -1,7 +1,8 @@
{ {
"[python]": { "[python]": {
"editor.defaultFormatter": "ms-python.black-formatter", "editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true "editor.formatOnSave": true,
"editor.formatOnSaveMode": "modifications"
}, },
"pylint.lintOnChange": false, "pylint.lintOnChange": false,
"files.associations": { "files.associations": {

View File

@@ -1,2 +1 @@
homeassistant==2023.12.1 homeassistant==2024.2.1
ffmpeg