Skip to content

Commit

Permalink
Merge pull request #141 from natekspencer/dev
Browse files Browse the repository at this point in the history
Update dev environment and validate GHA
  • Loading branch information
natekspencer authored Jul 8, 2024
2 parents 5bf3a14 + 00f4bd9 commit 17dfc6c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
9 changes: 3 additions & 6 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,22 @@
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.black-formatter",
"ms-python.vscode-pylance",
"ms-python.isort",
"ms-python.pylint",
"esbenp.prettier-vscode",
"github.vscode-pull-request-github",
"ryanluker.vscode-coverage-gutters"
"ryanluker.vscode-coverage-gutters",
"charliermarsh.ruff"
],
"settings": {
"files.eol": "\n",
"editor.tabSize": 4,
"python.pythonPath": "/usr/bin/python3",
"python.analysis.autoSearchPaths": false,
"python.formatting.provider": "black",
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "always"
},
"files.trimTrailingWhitespace": true
}
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/setup
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ set -e

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

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

mkdir -p config
13 changes: 9 additions & 4 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Validate
name: Validate repo

on:
push:
Expand All @@ -7,11 +7,16 @@ on:
- cron: "0 0 * * *"

jobs:
validate:
hassfest:
name: Validate with hassfest
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- name: HACS validation
uses: "hacs/action@main"
- uses: "home-assistant/actions/hassfest@master"
hacs:
name: Validate with HACS
runs-on: "ubuntu-latest"
steps:
- uses: "hacs/action@main"
with:
category: "integration"
1 change: 1 addition & 0 deletions config/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ homeassistant:
- type: trusted_networks
trusted_networks:
- 127.0.0.1
- 192.0.0.0/8
- ::1
allow_bypass_login: true
- type: homeassistant
Expand Down

0 comments on commit 17dfc6c

Please sign in to comment.