Skip to content

Commit a5c5581

Browse files
committed
Replace devcontainer
1 parent 208ae25 commit a5c5581

File tree

7 files changed

+40
-12
lines changed

7 files changed

+40
-12
lines changed
Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
// See https://aka.ms/vscode-remote/devcontainer.json for format details.
21
{
3-
"image": "ludeeus/container:integration-debian",
4-
"name": "Blueprint integration development",
5-
"context": "..",
6-
"appPort": [
2+
"name": "custom-components/readme",
3+
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.10-bullseye",
4+
"remoteUser": "vscode",
5+
"context": ".",
6+
"forwardPorts": [
77
"9123:8123"
88
],
9-
"postCreateCommand": "container install",
9+
"postCreateCommand": "scripts/setup",
1010
"extensions": [
11-
"ms-python.python",
12-
"github.vscode-pull-request-github",
13-
"ryanluker.vscode-coverage-gutters",
14-
"ms-python.vscode-pylance"
11+
"ms-python.python"
1512
],
1613
"settings": {
1714
"files.eol": "\n",

.gitignore

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
1-
custom_components/hacs
2-
__pycache__
1+
## Python temp files
2+
__pycache__
3+
4+
## Home Assistant files
5+
.cloud
6+
.storage
7+
.HA_VERSION
8+
blueprints
9+
deps
10+
home-assistant.*
11+
*.db*
12+
13+
## Integration files
14+
templates

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
black
2+
colorlog
3+
homeassistant

scripts/develop

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
cd "$(dirname "$0")/.."
5+
hass -c .

scripts/lint

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
cd "$(dirname "$0")/.."
5+
black .

scripts/setup

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
cd "$(dirname "$0")/.."
6+
python3 -m pip install -r requirements.txt

0 commit comments

Comments
 (0)