Skip to content

Commit

Permalink
Add setup and develop scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Feb 11, 2023
1 parent 4f0792a commit 7cbffb5
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 41 deletions.
1 change: 1 addition & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "ludeeus/integration_blueprint",
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.10-bullseye",
"postCreateCommand": "scripts/setup",
"forwardPorts": [
8123
],
Expand Down
30 changes: 26 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
# artifacts
__pycache__
pythonenv*
venv
.venv
.pytest*
*.egg-info
*/build/*
*/dist/*


# misc
.coverage
.idea
.vscode
coverage.xml


# Home Assistant configuration
.cloud
.HA_VERSION
.storage
automations.yaml
blueprints
configuration.yaml
deps
home-assistant_v2*
home-assistant.log*
tts
scenes.yaml
scripts.yaml
secrets.yaml
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pip>=21.0,<23.1
colorlog
homeassistant
1 change: 0 additions & 1 deletion requirements_dev.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements_test.txt

This file was deleted.

8 changes: 8 additions & 0 deletions scripts/develop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -e

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

# Start Home Assistant
hass -c . --debug
7 changes: 7 additions & 0 deletions scripts/setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -e

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

python3 -m pip install --requirement requirements.txt
35 changes: 0 additions & 35 deletions setup.cfg

This file was deleted.

0 comments on commit 7cbffb5

Please sign in to comment.